Commit 24346cf7 by BellCodeEditor

save project

parent 739a092f
Showing with 18 additions and 20 deletions
def new_input():
total = []
while True:
unit= input('请输入(q退出):')
if unit== 'q':
break
else
try:
unit = int(unit)
except:
print(请重新输入一个数字"")
else:
total.append(unit)
print("_"*30)
print total
result = new_input()
print(result)
\ No newline at end of file
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
pen.speed('fast')
pen.hideturtle()
screen.bgcolor('black')
i=0
while i<135:
pen.pencolor('pink')
pen.penup()
pen.goto(0,0)
pen.forword(200)
pen.pendown()
pen.circle(200)
pen.left(2)
i+=1
turtle.done()
\ 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