摘要: import turtle turtle.color ("red","yellow") turtle.begin_fill () while True: turtle.forward(100) turtle.right(120) if abs(turtle.pos())<1: break turtl 阅读全文
posted @ 2020-10-06 15:13 小C+ 阅读(73) 评论(0) 推荐(0) 编辑
摘要: # coding:utf-8 import turtle as t t.screensize(400, 300, "blue") t.pensize(4) # 设置画笔的大小 t.colormode(255) # 设置GBK颜色范围为0-255 t.color((255,155,192),"pink 阅读全文
posted @ 2020-09-21 19:26 小C+ 阅读(109) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.fillcolor("red") turtle.begin_fill() while True: turtle.forward(220) turtle.right(144) if abs(turtle.pos()) < 1: break turtle.fd( 阅读全文
posted @ 2020-09-14 20:08 小C+ 阅读(63) 评论(0) 推荐(0) 编辑