Commit 6330e273 by BellCodeEditor

save project

parent 6b1fbc15
File added
from PIL import Image
import numpy as np
img = Image.open('6x2.png')
print(img)
value=np.array(img)
print(value)
\ No newline at end of file
import wordcloud
\ No newline at end of file
import wordcloud
w=wordcloud.WordCloud(background_color='white',font_path='MINGLIUB.TTC')
with open(r'c:\Users\12227\Documents\level3-lesson21-diy1\python二级考试大纲.txt','r',encoding='utf-8') as f:
text=f.read()
w.generate(text)
w.to_file('mycloud.png')
\ No newline at end of file
###基本要求
###基本要求
......@@ -29,7 +29,7 @@
3.变量的作用域:局部变量和全局变量。
五、组合数据类型
1.组合数据类型的基本概念
2.列表类型:定义、索引、切片。
2.列表类型:定义、索引、切片。_
3.列表类型的操作:列表的操作函数、列表的操作方法
4.字典类型:定义、索引。
5.字典类型的操作:字典的操作函数、字典的操作方法。
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment