Commit aa151a35 by BellCodeEditor

save project

parent 1ca463c4
Showing with 21 additions and 16 deletions
import turtle
pen=turtle.Pen()
pen.write("诺依",font=("Times",18,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(5)
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.hideturtle()
turtle.done()
\ No newline at end of file
def new_input():
total = []
while True:
money = input('请输入(q退出):')
if money == 'q':
break
else:
try:
unit = int(money)
except:
print("请输入一个数字")
else:
total.append(money)
finally:
print("-"*30)
return total
result = new_input()
print(result)
\ 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