Commit 567b0d99 by BellCodeEditor

save project

parent 3f49a12c
Showing with 10 additions and 1 deletions
c=[]
while True:
try:
a=int(input('请输入数字'))
except:
print('要输入整数啊')
else:
c.append(a)
print(c)
total = [] total = []
while True: while True:
unit= input("请输入:") unit=input("请输入:")
if unit== 'q': if unit== 'q':
break break
else: else:
......
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