Commit 0a5a69fa by BellCodeEditor

save project

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