Commit 2f799344 by BellCodeEditor

auto save

parent b821c496
Showing with 13 additions and 30 deletions
def aq(): s=input()
total = [] a=s.split(' ')
lis = [int(i) for i in a]
while True: c=0
unit= input("请输入:") for i in lis:
if unit== 'q': if i>5:
break c=c+i
else: print(c)
try: \ No newline at end of file
unit=int(unit)
except:
print("重输")
else:
total.append(unit)
finally:
print("-"*30)
return total
def a(money):
count=0
for i in money:
count++
return count
result=a(aq)
print("你花了"+str(result)+"元,微信,花呗,支付宝")
\ No newline at end of file
import func a={"Sunday":1,"Monday":2,"Tuesday":3,"Wednesday":4,"Thursday":5,"Friday":6,"Saturday":7}
z=func.aq() w=int(input())
x=func.a(z) print((a[w]))
print("花了"+str(a(z))+"钱")
\ 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