Commit 93108b2e by BellCodeEditor

save project

parent b2dca57e
Showing with 5 additions and 3 deletions
...@@ -10,11 +10,12 @@ def md(): # md 是买单的意思 ...@@ -10,11 +10,12 @@ def md(): # md 是买单的意思
except: except:
input("尊敬的 VIP 9999999 客户请输入:") input("尊敬的 VIP 9999999 客户请输入:")
return total #返回值 return total #返回值
# #求和
def qiaohe(qqq): def qiouhe(qqq):
abh=0 abh=0
for i in qqq: for i in qqq:
abh+=i abh+=i
return abh return abh
x = qiaohe(md()) x = qiouhe(md())
#打印结果
print(x) print(x)
\ 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