Commit 71e484a1 by BellCodeEditor

save project

parent e75ad882
Showing with 1 additions and 6 deletions
def s(): def s():
total = [] total = []
while True: while True:
try: unit= input("请输入:")
unit= int(input("请输入:"))
if unit== 'q': if unit== 'q':
break break
else: else:
total.append(unit) total.append(unit)
except:
print("输入数字")
else:
print(total) print(total)
s() s()
\ 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