摘要:
1 #三国演义人物出场次数统计 2 import jieba 3 excludes = {"将军","却说","荆州","二人","不可","不能","如此","商议","军士","如何","主公","军马","左右",} 4 with open("./三国演义.txt", "r", )as fil 阅读全文
摘要:
1 # import package 2 import turtle 3 from turtle import * 4 import time 5 # set background image 6 #turtle.bgpic("xrr.png") 7 8 pm=Screen() #新建屏幕对象 9 阅读全文
摘要:
1 #2.14 2 from turtle import* 3 from time import sleep 4 5 def go_to(x,y): 6 up() 7 goto(x,y) 8 down() 9 10 def head(x,y,r): 11 go_to(x,y) 12 speed(1) 阅读全文
摘要:
1 # coding:utf-8 2 import turtle as t 3 t.pensize(4) # 设置画笔的大小 4 t.colormode(255) # 设置GBK颜色范围为0-255 5 t.color((255,155,192),"pink") # 设置画笔颜色和填充颜色(pink 阅读全文