Commit b135a693 by BellCodeEditor

auto save

parent 5958090a
Showing with 25 additions and 11 deletions
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
# break# 结尾缩进 # break# 结尾缩进
#print('第6个孩子宙斯逃过一劫')# 输出缩进 #print('第6个孩子宙斯逃过一劫')# 输出缩进
#2,city = ['纽约','华盛顿','桃源岛','洛杉矶','芝加哥','旧金山'] city = ['纽约','华盛顿','桃源岛','洛杉矶','芝加哥','旧金山']
#e=input('你想去哪里啊?') e=input('你想去哪里啊?')
#if e in city: if e in city:
# print('可以乘坐飞机通往'+e) print('可以乘坐飞机通往'+e)
#else: else:
# print('没有'+e+'这座城市') print('没有'+e+'这座城市')
#3,纠错 #3,纠错
...@@ -34,9 +34,22 @@ ...@@ -34,9 +34,22 @@
#fun1() #fun1()
#fun2() #fun2()
list=['盘丝洞','白骨洞','大雁塔']
monster={'盘丝洞':'蜘蛛精','白骨洞':'白骨精','大雁塔':'花妖'}
print(list[2])
list['地府']='僵尸'
print(monster)
#list=['盘丝洞','白骨洞','大雁塔']
#monster={'盘丝洞':'蜘蛛精','白骨洞':'白骨精','大雁塔':'花妖'}
#print(list[3]) #索引是从0开始的 所以上面的索引最多到2
#monster.append('地府','僵尸')#
#print(monster)
#list=['盘丝洞','白骨洞','大雁塔']
#monster={'盘丝洞':'蜘蛛精','白骨洞':'白骨精','大雁塔':'花妖'}
#print(list[2])
#monster['地府']='僵尸'
#print(monster)
#报菜名 纠错
#total={'香港':{'日式法餐':'Ta Vie','古法粤菜':'家全七福','法式酒馆':'Belon'},'曼谷':{'泰国料理':'Paste','印度北欧料理':'Gaa','德国菜':'Suhring'},'东京':{'中华料理':'茶禅华','寿司':'Sushi Saito','怀石料理':'龙吟'}}
#for k,v in total.items():
# for m,n in v.items():
# if m =='怀石料理':
# print(v[m])
\ 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