摘要: 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 阅读全文
posted @ 2022-05-06 16:29 消逝在梦的彼岸 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 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) 阅读全文
posted @ 2022-05-06 16:27 消逝在梦的彼岸 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2022-05-06 16:24 消逝在梦的彼岸 阅读(25) 评论(0) 推荐(0) 编辑