Commit 225e4716 by BellCodeEditor

save project

parent a3ac23b2
Showing with 3 additions and 3 deletions
def new_imput():
total = []
while True:
unit= int(input("请输入:"))
if unit== 'q':
unit= input("请输入:")
if unit == 'q':
break
else:
try:
......@@ -11,7 +11,7 @@ def new_imput():
print("请重新输入一个数字")
else:
total.append(unit)
print("-"*30)
print("-"*30)
print(total)
new_imput()
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