Commit b2dca57e by BellCodeEditor

save project

parent dc70412a
Showing with 21 additions and 0 deletions
def md(): # md 是买单的意思
total = []
while True: #记录5行和11的 数字
try:
unit= input("尊敬的 VIP 9999999 客户请输入:")
if unit== 'q':
break
else:
total.append(int(unit))
except:
input("尊敬的 VIP 9999999 客户请输入:")
return total #返回值
#
def qiaohe(qqq):
abh=0
for i in qqq:
abh+=i
return abh
x = qiaohe(md())
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