问题遇到的现象和发生背景
jieba在cmd上可正常运行,但是在vscode内运行报错
问题相关代码,请勿粘贴截图
import jieba
content = "工信处干事每月要经过下属可是都要亲口交代安装工作"
jieba.cut(content,cut_all=False)
发生异常: AttributeError
partially initialized module 'jieba' has no attribute 'cut' (most likely due to a circular import)
File "E:\Python\bs\jieba.py", line 7, in <module>
jieba.cut(content,cut_all=False) #cut_all=False表示精确模式,True全模式
File "E:\Python\bs\jieba.py", line 5, in <module>
import jieba #导入结巴包