Commit 4e3eef10 by BellCodeEditor

save project

parent d36240c4
Showing with 9 additions and 1 deletions
...@@ -19,4 +19,11 @@ jg = new_input() ...@@ -19,4 +19,11 @@ jg = new_input()
print("-"*30) print("-"*30)
print(jg) print(jg)
print("-"*30) print("-"*30)
def aa(jg):
c=0
for i in jg:
c=c+i
return c
p=new_input()
pa=aa(p)
print("您一共消费了"+str(pa)+"元!现金还是支付宝?")
\ 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