Commit dc94ca97 by BellCodeEditor

save project

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