Commit 0a5a69fa by BellCodeEditor

save project

parent 17d2e5aa
Showing with 13 additions and 7 deletions
def sssss(): def sssss():
total = [] t = []
while True: while True:
unit= input("请输入:") u= input("请输入:")
if unit== 'q': if u== 'q':
break break
else: else:
total.append(unit)
try:
print(total) p=int(u)
except:
print('输入错误')
else:
t.append(p)
print(t)
sssss() sssss()
\ 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