Commit 225e4716 by BellCodeEditor

save project

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