Commit c511a3e9 by BellCodeEditor

save project

parent bcf06d30
Showing with 11 additions and 4 deletions
total = []
def new_imput():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print(total)
2021-0
try:
unit = int(unit)
except:
print("请重新输入一个数字")
else:
total.append(unit)
print("-"*30)
print(total)
new_imput()
#import turtle
#pen=turtle.Pen()# 报菜名
......
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