Commit ea8eb335 by BellCodeEditor

save project

parent 444fe944
...@@ -20,6 +20,6 @@ def sum(money): ...@@ -20,6 +20,6 @@ def sum(money):
for i in money: for i in money:
he=he+i he=he+i
return he return he
a=new_input() # a=new_input()
pay=sum(a) # pay=sum(a)
print("一共花了"+str(pay)+"元,扫码还是现金?") # print("一共花了"+str(pay)+"元,扫码还是现金?")
\ No newline at end of file \ No newline at end of file
import func
d=func.new_input()
s=func.sum(d)
print('总分:'+str(s))
\ No newline at end of file
# eee={'F':70,'C':67,'h':104,'i':105,'s':115}
# o=eee['C']
# print(o)
# s={'Jonh':10,'Sam':11,'Lily':9,'Anna':10,'Daming':10,'Helen':12}
# s['Lily']=10
# s['小红']=11
# print(s)
# f={'苹果':'4.98','葡萄':'9.80','哈密瓜':'3.50'}
# f.clear()
# print(f)
# u={'name':'创造师','age':'13','course':'python'}
# for i in u:
# s=u[i]
# print(s)
# d1={'姓名':'杰克','性别':'男','年龄':'13'}
# d2={'姓名':'苏珊','性别':'女','年龄':'11'}
# d3={'姓名':'小贝','性别':'男','年龄':'12'}
# uy={'杰克''':d1,'苏珊':d2,'小贝':d3}
# print(d3['年龄'])
# e=uy['小贝']
# for i,n in e.items():
# print(i,n)
\ 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