Commit 64402329 by BellCodeEditor

save project

parent 58d8e1ed
Showing with 9 additions and 9 deletions
......@@ -15,5 +15,4 @@ a['队猴长']=100
print(a)
a["馬牛逼"]="1"
print(a)
if '馬牛逼' in a:
print(a['馬牛逼'])
\ No newline at end of file
if '馬
\ No newline at end of file
# 直接运行以下代码,说说你的发现:
list_hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98]
dict_hero = {'赵一':30,'丁二':37,'孙五':52,'王猛':89,'周亮':98}
print(len(list_hero))
print(len(dict_hero))
\ No newline at end of file
a={'可口可笑':3000000000,'雷碧':300000000000000,'农夫三拳':999999999999999999999999,'粤利粤':10000000}
s=input('你想买什么?')
if s in a:
print('********')
else:
print('**********************')
\ 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