Commit f9ca211f by BellCodeEditor

auto save

parent a1da6478
Showing with 3 additions and 7 deletions
...@@ -11,18 +11,14 @@ def new_input(): ...@@ -11,18 +11,14 @@ def new_input():
print("重新输入") print("重新输入")
else: else:
total.append(unit) total.append(unit)
print(total)
return total return total
r=new_input()
sum=0
def b(r): def b(r):
sum=0
for i in r: for i in r:
sum+=i sum=sum+i
print(sum)
return sum
print(sum) print(sum)
new_input() new_input()
......
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