本帖最后由 王彦博 于 2022-7-28 15:46 编辑
[Python] 纯文本查看 复制代码
a = input('请输入你想要的魂环,回答年数,如回答:十----->')
if a == '十':
import turtle
turtle.pencolor('blue')
turtle.pensize(5)
turtle.speed(0)
for i in range(136):
turtle.left(15)
turtle.forward(100)
turtle.left(50)
turtle.forward(101)
turtle.done()
elif a == '百':
import turtle
turtle.pencolor('yellow')
turtle.pensize(5)
turtle.speed(0)
for i in range(136):
turtle.left(15)
turtle.forward(100)
turtle.left(50)
turtle.forward(101)
turtle.done()
elif a == '千':
import turtle
turtle.pencolor('purple')
turtle.pensize(5)
turtle.speed(0)
for i in range(136):
turtle.left(15)
turtle.forward(100)
turtle.left(50)
turtle.forward(101)
turtle.done()
elif a == '万':
import turtle
turtle.pencolor('black')
turtle.pensize(5)
turtle.speed(0)
for i in range(136):
turtle.left(15)
turtle.forward(100)
turtle.left(50)
turtle.forward(101)
turtle.done()
elif a == '十万':
import turtle
turtle.pencolor('red')
turtle.pensize(5)
turtle.speed(0)
for i in range(136):
turtle.left(15)
turtle.forward(100)
turtle.left(50)
turtle.forward(101)
turtle.done()
elif a == '百万':
import turtle
turtle.bgcolor('black')
turtle.pencolor('white')
turtle.pensize(5)
turtle.speed(0)
for i in range(136):
turtle.left(15)
turtle.forward(100)
turtle.left(50)
turtle.forward(101)
turtle.done()
else:
print('最多千万,你瞎打什么呢!')
|