Commit f1177e45 by BellCodeEditor

save project

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