Commit fa44989c by BellCodeEditor

save project

parent c7e1c959
Showing with 9 additions and 10 deletions
...@@ -11,16 +11,15 @@ ...@@ -11,16 +11,15 @@
# else: # else:
# total.append(unit) # total.append(unit)
# print(total) # print(total)
def add(a,b): def new_input():
return add2(a,b) total = []
while True:
def add2(a,b): unit= input("请输入:")
c = a + b if unit== 'q':
return c break
else:
a = add(3,5) total.append(unit)
print(a) print(total)
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