Commit d4706bb5 by BellCodeEditor

save project

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