Commit 6d322c53 by BellCodeEditor

save project

parent 0e490ae3
Showing with 8 additions and 3 deletions
......@@ -11,8 +11,13 @@ def qw():
print("请输入数字:")
else:
total.append(unit)
return(total)
print(total)
def sum(qian):
count = 0
for i in qian:
count=count+i
return count
result=qw()
print(result)
\ No newline at end of file
pay=sum(result)
print('你要支付'+str(pay))
\ 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