单选题

根据以下代码,描述错误的选项是? ( )

import wordcloud
txt="what's your name?"
w=wordclouWordCloud(background_color="white")
w.generate(txt)
w.to_file('px.png')
A

background_color指定词云图片的背景颜色,默认为白色

B

generate向WordCloud对象中加载文本txt

C

to_file将词云输出为图像文件,.png或.jpg格式

D

wordclouWordCloud()代表一个文本对应的词云

赣ICP备20007335号-2