Commit 05166d14 by BellCodeEditor

save project

parent 554e251b
Showing with 48 additions and 10 deletions
...@@ -16,7 +16,43 @@ while True: ...@@ -16,7 +16,43 @@ while True:
pen.pendown() pen.pendown()
pen.circle(100) pen.circle(100)
pen.left(2) pen.left(2)
pen.left(28) pen.left(28 )
pen.left(28 )
i+=1
pen.left(28 )
i+=1
pen.left(28 )
i+=1
pen.left(28 )
i+=1
pen.left(28 )
i+=1
pen.left(28 )
i+=1
pen.left(28 )
i+=1
pen.left(28 )
i+=1
pen.left(28 )
i+=1
pen.left(28 )
i+=1
pen.left(28 )
i+=1
pen.left(28 )
i+=1
pen.left(28 )
i+=1
pen.left(28 )
i+=1
i+=1 i+=1
turtle.done() turtle.done()
\ No newline at end of file
# 勇于挑战的创造师,下面的代码犯了两类典型错误,请你把bug揪出来吧。 # 假期到了,诺依想出去玩,但不知道有没有飞机直达那里,
area = ['盘丝洞','白骨洞','大雁塔'] # 悟空做了个小程序帮助诺依,然而代码出现了3处错误。
monster = {'盘丝洞':'蜘蛛精','白骨洞': '白骨精','大雁塔':'花妖'} # 请你找出来,并运行~
# 打印出大雁塔 city = ['纽约','华盛顿','桃源岛','洛杉矶','芝加哥','旧金山']
print(area[3]) d=input('你想去哪里啊?')
# 向字典中添加 '地府':'僵尸' if d in city:
monster.append('地府','僵尸') print('可以乘坐飞机通往'+d)
print(monster) else:
\ No newline at end of file print('没有'+d+'这座城市')
\ 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