Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / level3-lesson21-diy1

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • level3-lesson21-diy1
  • my_cloud.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · 7fdd9965
    BellCodeEditor committed 2 years ago
    7fdd9965
my_cloud.py 221 Bytes
Edit
1 2 3 4 5 6
import wordcloud
with open("python二级考试大纲.txt",encoding="utf-8") as f:
    text = f.read()
w = wordcloud.WordCloud(background_color="white",font_path="SimHei.ttf")
w.generate(text)
w.to_file("mycloud.png")