Python制作个性签名云图时出现错误如何解决
某一句代码:
my_wordcloud=WordCloud(background_color=‘white’,max_words=2000,
mask=coloring,max_font_size=60,random_state=42,scale=2,
font_path=“i:simhei.ttf”).generate(word_space_split)
运行时提示错误: File “c:\WeChatOutputSignature.py”, line 50, in <module>
font_path=“c:/Windows/Font/simhei.ttf”).generate(word_space_split)
TypeError: ‘module’ object is not callable
求大佬们指点一下,这下我
Python制作个性签名云图时出现错误如何解决
3 回复
我无法理解你的问题
请问怎样上传文件
别的不清楚, 只看报错信息的话:
TypeError: ‘module’ object is not callable
这里看起来说明它不是一个函数或者方法, 你要检查一下 WordCloud 或者 generate, 看看他们是不是一个能够被调用的函数?

