摘要: import turtle n = eval(input("请输入五角星的长度")) turtle.begin_fill() #开始填充颜色 i = 0 while i < 5: turtle.forward(n) turtle.right(180-36) i += 1 turtle.color(" 阅读全文
posted @ 2020-03-12 12:04 可乐配牛奶 阅读(584) 评论(0) 推荐(0) 编辑
摘要: from turtle import * color("black","red") begin_fill() pu() fd(-200) pd() seth(30) fd(300) seth(-90) fd(300) seth(150) fd(300) end_fill() pu() seth(90 阅读全文
posted @ 2020-03-12 12:02 可乐配牛奶 阅读(1174) 评论(0) 推荐(0) 编辑
摘要: import turtle as t t.setup(600, 600, None,None) t.pu() t.fd(-120) t.pensize(5) t.width(5) t.pencolor("darkgreen") t.pd() t.fd(250) t.seth(120) t.penco 阅读全文
posted @ 2020-03-12 12:00 可乐配牛奶 阅读(3394) 评论(0) 推荐(0) 编辑
摘要: 1.使用turtle库绘制红色五角星图形 import turtle n = eval(input("请输入五角星的长度")) turtle.begin_fill() #开始填充颜色 i = 0 while i < 5: turtle.forward(n) turtle.right(180-36) 阅读全文
posted @ 2020-03-12 11:56 可乐配牛奶 阅读(633) 评论(0) 推荐(0) 编辑