这是一个创建于 2466 天前的主题,其中的信息可能已经有所发展或是发生改变。
某一句代码:
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
求大佬们指点一下,这下我
2 条回复 • 2017-07-26 23:40:09 +08:00
|
|
1
337136897 2017-07-26 22:33:26 +08:00
请问怎样上传文件
|
|
|
2
zhanglintc 2017-07-26 23:40:09 +08:00
别的不清楚, 只看报错信息的话:
TypeError: 'module' object is not callable
这里看起来说明它不是一个函数或者方法, 你要检查一下 WordCloud 或者 generate, 看看他们是不是一个能够被调用的函数?
|