Commit 24346cf7 by BellCodeEditor

save project

parent 739a092f
Showing with 18 additions and 20 deletions
def new_input(): import turtle
total = [] pen=turtle.Pen()
while True: screen=turtle.Screen()
unit= input('请输入(q退出):') pen.speed('fast')
if unit== 'q': pen.hideturtle()
break screen.bgcolor('black')
else i=0
try: while i<135:
unit = int(unit) pen.pencolor('pink')
except: pen.penup()
print(请重新输入一个数字"") pen.goto(0,0)
else: pen.forword(200)
total.append(unit) pen.pendown()
print("_"*30) pen.circle(200)
print total pen.left(2)
i+=1
result = new_input() turtle.done()
print(result) \ No newline at end of file
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment