Commit cd0af721 by BellCodeEditor

save project

parent 0b57c2e2
Showing with 6 additions and 10 deletions
def ss():
def ss()
total = []
while True:
try:
unit=input("请输入:")
if unit== 'q':
break
int(unit)
except:
print("整数")
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print('-'*30)
total.append(unit)
print(total)
ss()
\ 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