Commit 2f799344 by BellCodeEditor

auto save

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