Commit c07b4f09 by BellCodeEditor

save project

parent 42f1f66c
Showing with 2 additions and 1 deletions
def oo(): def oo():
print("-"*50)
total = [] total = []
while True: while True:
unit= input("请输入:") unit= input("请输入:")
...@@ -13,7 +14,7 @@ def oo(): ...@@ -13,7 +14,7 @@ def oo():
total.append(unit) total.append(unit)
return total return total
total=oo() total=oo()
print(total) print("-"*50)
a=0.0 a=0.0
for i in total: for i in total:
a+=i a+=i
......
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