Commit b0f301fe by BellCodeEditor

auto save

parent 4184257a
Showing with 30 additions and 20 deletions
def new_input(): import turtle
total = []
while True: pen=turtle.Pen()
money = input('请输入 (q退出):') screen=turtle.Screen()
if money == 'q': pen.speed('fast')
break pen.hideturtle()
else: screen.bgcolor('black')
try: i=0
money = int(money) while i<135:
except: pen.pencolor('pink')
print("请输入亿————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————个数字") pen.penup()
else: pen.goto(0,0)
total.append(money) pen.forward(200)
finally: pen.pendown()
print("-"*30) pen.circle(100)
return total pen.left(2)
result = new_input() i+=1
print(result) turtle.dong()
"——————————————————————————" \ No newline at end of file
\ No newline at end of file
def new_input():
total=[]
while True:
unit=input('输入445即可退出')
if unit=='q':
break
else:
total.append(unit)
print(total)
new_input()
\ 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