Commit 6f6abbde by BellCodeEditor

save project

parent eaeaab43
Showing with 8 additions and 6 deletions
total = []
while True:
def new_input():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
......@@ -15,8 +16,8 @@ while True:
return total
result = new_input()
print(result)
sum = 0
for i in result:
sum sum+result[i]
print(sum)
#sum = 0
#for i in result:
# sum sum+result[i]
#print(sum)
\ 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