Commit 64402329 by BellCodeEditor

save project

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