Commit d4706bb5 by BellCodeEditor

save project

parent 53db85fb
Showing with 15 additions and 13 deletions
def skr():
t0tal = []
while true
try:
unit= input("请输入:"))
except:
print('数字')
if unit== '-1':
break
else:
total.append(unit)
print(total)
skr()
\ No newline at end of file
total = []
while True:
try:
unit = int(input("请输入:"))
except:
print('数字')
else:
if unit== -1:
break
else:
total.append(unit)
return total
s=skr()
print(s)
\ 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