iflytek.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:wechat 作者: tianyongchina 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号