用户:
无畏的树毛虫RR-5查看:0 回复:0 评论:0 创建时间:2022-10-04T11:40:30
【作品展示】

【作品介绍】
作者很懒
【作品源代码】
import turtle as t
import easygui as g
t.hideturtle()
def a1():
for i in range(4):
t.forward(100)
t.right(90)
def b():
for i in range(3):
t.left(120)
t.forward(100)
def c():
t.circle(100)
while True:
a = g.enterbox('请输入你想画的图形','画图形小游戏')
if a == '正方形':
a1()
elif a == '三角形':
b()
elif a == '圆形':
c()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn