Commit 75962ca9 by BellCodeEditor

save project

parent 47ee2a91
Showing with 4 additions and 4 deletions
...@@ -6,10 +6,11 @@ def a(): ...@@ -6,10 +6,11 @@ def a():
break break
else: else:
try: try:
int(unit) unit=int(unit)
except: except:
print("输入数字") print("输入数字")
else : else :
total.append(unit) total.append(unit)
print(total) return(total)
a() d=a()
\ No newline at end of file print(d)
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