def __init__(self):
self.__libmsc = ctypes.CDLL("./clibs/libmsc.so")
self.__flag = True
#answer/text
self.__list1 = ['baike', 'calc', 'datetime', 'faq', 'openQA', 'chat']
#text
self.__list2 = ['weather']
#
self.__list3 = ['app', 'cookbook', 'flight', 'hotel', 'map', 'music', 'radio', 'restuarant', \
'schedule', 'stock', 'train', 'translation', 'tv', 'video', 'websearch', \
'website', 'weibo', 'flower', 'gift']
#????
ret = self.__libmsc.MSPLogin(None, None, c_char_p("appid = appidtest"))
if (0 != ret):
#print ("MSPLogin failed , Error code %d"%(ret))
log.debug("MSPLogin failed , Error code %d"%(ret))
self.__flag = False
评论列表
文章目录