摘要:
import jieba txt=open('test.txt','r',encoding='utf-8').read() words=list(jieba.cut(txt)) exc={'我们','可是','自己','他们','一个',} keys=set(words) keys=keys-exc dic={}#定义一个空字典 for i in keys: if len(i)=... 阅读全文
摘要:
>>> fo=open('test.txt','w')>>> fo.write('''I'm a big big girl in a big big world It's not a big big thing if you leave me but I do do feel that I too 阅读全文
摘要:
1. big='''i'm a big big girlin a big big worldit's not a big big thing if you leave mebut i do do feelthat i too too will miss you muchmiss you muchi 阅读全文
摘要:
1. import turtleturtle.color('yellow')turtle.bgcolor('red')turtle.begin_fill()for i in range(5): turtle.forward(200) turtle.right(144)turtle.end_fill( 阅读全文