摘要: from turtle import * # 设置窗体的大小和位置,参数依次为窗体的宽、高、相对于桌面起始点的横坐标、纵坐标 setup(600,400,500,200) # 画笔颜色 color("red") # 画笔宽度 pensize(5) # 画一个半径为20的圆 circle(20) # 阅读全文
posted @ 2020-09-21 19:40 εε 阅读(177) 评论(0) 推荐(0)
摘要: import turtle import time turtle.pensize(4) turtle.pencolor("yellow") #画笔黄色 turtle.fillcolor("red") #内部填充红色 #绘制五角星# turtle.begin_fill() for _ in range 阅读全文
posted @ 2020-09-21 19:14 εε 阅读(249) 评论(0) 推荐(0)