Commit d4706bb5 by BellCodeEditor

save project

parent 53db85fb
Showing with 9 additions and 7 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:
if unit== -1:
break break
else: else:
total.append(unit) total.append(unit)
print(total) return total
skr() s=skr()
\ No newline at end of file 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