赞
踩
代码示例:
- # 导入自定义词典,可以是文件也可以是字典
- # 导入文件
- try:
- jieba.load_userdict(fuserdict)
- except IOError:
- print ("userdict is not accessible.")
-
- # 导入字典
- userdict_sql = 'select word, word_frequency from userdict where (username = "{0}" or username = "admin");'.format(username, user_id
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。