From 85a2df1af74ae67b9d1e004b487a43fd34663404 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sun, 4 Jul 2021 19:09:04 +0800
Subject: [PATCH] save project

---
 my_cloud.png | Bin 0 -> 778493 bytes
 my_cloud.py  | 7 ++++++-
 2 files changed, 6 insertions(+), 1 deletion(-)
 create mode 100644 my_cloud.png

diff --git a/my_cloud.png b/my_cloud.png
new file mode 100644
index 0000000..50b8c0e
Binary files /dev/null and b/my_cloud.png differ
diff --git a/my_cloud.py b/my_cloud.py
index 09911f2..c1a9ea0 100644
--- a/my_cloud.py
+++ b/my_cloud.py
@@ -1 +1,6 @@
-import wordcloud
\ No newline at end of file
+import wordcloud
+with open('python二级考试大纲.txt','r',encoding='utf-8') as file:
+    text=file.read()
+w=wordcloud.WordCloud(background_color='white',font_path='SimHei.ttf',width=1920,height=1080)
+w.generate(text)
+w.to_file('my_cloud.png')
\ No newline at end of file
--
libgit2 0.25.0