解释:

最起码要有一个 字符 用来绘制,已获取 0

验证:

读取到了内容,但是输出为空白。说明是编码问题

text = open(path.join(d, 'D:\python\CompatingD\Cloud_map\\alice.txt')).read()
print text


ValueError: We need at least 1 word to plot a word cloud, got 0.

 解决:

Ctrl+A复制数据,新建txt,选择确定,替换源文件即可

ValueError: We need at least 1 word to plot a word cloud, got 0.

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-12
  • 2021-12-29
  • 2021-12-31
  • 2021-12-18
  • 2022-12-23
  • 2021-10-24
猜你喜欢
  • 2021-11-14
  • 2021-05-11
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2021-05-02
相关资源
相似解决方案