Commit ae363aa4 by BellCodeEditor

save project

parent 6edd0cd9
Showing with 28 additions and 0 deletions
# dict1={"赵一":30,"丁二":29,"王五":35}
# dict1['丁二']=30
# print(dict1)
a=[]
a.append(1)
b=['asdfghjkl']
a.extend(b)
a.insert(0,'规划是易会工会才发现风景线')
print(a)
\ No newline at end of file
# d={"可口可乐":3,"旺仔牛奶":4,"农夫山泉":1,"辣条":3,"巴西烤肉":2,"果冻":4}
# k=input('你想买啥')
# if k in d:
# print('你的'+k+'需要支付'+str(d[k])+'元')
# if k not in d:
# print('你的'+k+'没货了')
a={'狗':60,'猫':90,'猪':99}
p=input('名字')
q=int(input('分数'))
if p in a:
if q>a[p]:
a[p]=q
else:
a[p]=q
print(a)
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