Commit f1177e45 by BellCodeEditor

save project

parent fa681eae
Showing with 9 additions and 3 deletions
def yhdhg():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
w= input("请输入:")
if w== 'q':
break
else:
total.append(unit)
try:
w=int(w)
except:
print('请重新输入 ')
else:
total.append(w)
print(total)
yhdhg()
\ 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