# 请在______处补充一行代码# 请不要修改其他代码import turtle as t
for i inrange(4):
t.fd(200)
t.left(90)
t.penup()
t.goto(100,0)
t.pendown()
t.color('green','red')
t.pensize(5)
t.begin_fill()
t.circle(100)
t.end_fill()
t.done()
#请在.....处填写多行表达式或语句#不得修改其他代码import jieba
fuhao=[",",":","、","。",";","“","”"]withopen("data1.txt","r",encoding="utf-8")as f:
all_txt=f.read()for ch in fuhao:
all_txt=all_txt.replace(ch,'')
data=jieba.lcut(all_txt)print('/'.join(data))print('高频词top5如下:')
d={
}for i in data:iflen(i)>=2:
d[i]=d.get(i,0)+1
ls=list(d.items())
ls.sort(key=lambda x:x[1],reverse=True)for s