```
import jieba
import wordcloud
w = wordcloud.WordCloud(width=600,height=400,background_color='black',font_path='msyhbd.ttc')
file = open('c:\\523\\171160.txt',encoding="utf-8")
txt = file.read()
lst = jieba.lcut(txt)
#print(type(lst))
lst1 = ''.join(lst)
#print(len(lst1))
w.generate(lst1)
w.to_file("shz.png")
```
```
from turtle import *
from math import *
setup(600,500,None,None)
title("我的海龟绘图ok")
for y in range(11):
pen_y = 190-45*y
#print(pen_y)
pen_x = -300-7.5*sqrt(3)*pow(-1,y)+7.5*sqrt(3)
print(pen_x)
penup()
goto(pen_x,pen_y)
pendown()
for x in range(12):
circle(30,steps=6)
penup()
forward(30*sqrt(3))
pendown()
done()
```
- py转exe
- py服务器
- py登录
- py查询
- 爬TB热卖1017
- 爬TB分类1015
- 爬BD文库1010
- 爬文库924
- json917
- decode912
- 转码910
- radians829
- turtle827
- 画叶子820
- 树干815
- Turtle, mainloop718
- sorted716
- random711
- turtle.colormode709
- abs704
- begin_fill702
- randint,random627
- isalpha625
- keyword620
- compile618
- judge613
- list1.copy611
- random.choice606
- format_randint604
- save_csv528
- jieba523
- wordcloud521
- wordcloud516
- jieba.lcut514
- counts503
- format423
- 花瓣418
- strftime416
- turtle.fillcolor411
- random.random409
- pensize404
- 花蕊328
- input327
- eval_float320
- open319
- while314
- JCR影响因子313
- _to_chinese4_312
- encoding306
- read305
- flask1029