Commit 6707924b by BellCodeEditor

auto save

parent f3cb99f4
Showing with 5 additions and 4 deletions
def suan_zhang: def suan_zhang():
total = [] total = []
while True: while True:
unit= input("请输入:") unit= input("请输入:")
...@@ -10,5 +10,6 @@ def suan_zhang: ...@@ -10,5 +10,6 @@ def suan_zhang:
except: except:
print("要输入整数哟") print("要输入整数哟")
else: else:
total.append(unit) total.append(unit)
print(total) print(total)
\ No newline at end of file suan_zhang()
\ 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