Commit 5a44f60b by BellCodeEditor

auto save

parent 62bf6239
Showing with 87 additions and 9 deletions
# 勇于挑战的创造师,下面的代码犯了两类典型错误,请你把bug揪出来吧。 import turtle as t
area = ['盘丝洞','白骨洞','大雁塔'] t.speed(0.1)
monster = {'盘丝洞':'蜘蛛精','白骨洞': '白骨精','大雁塔':'花妖'} t.penup()
# 打印出大雁塔 t.goto(-135,-145)
print(area[3]) t.pendown()
# 向字典中添加 '地府':'僵尸' t.begin_fill()
monster.append('地府','僵尸') t.color("orange","orange")
print(monster) for i in range(2):
\ No newline at end of file t.forward(200)
t.left(90)
t.forward(100)
t.left(90)
t.end_fill()
t.begin_fill()
t.color("blue","blue")
t.penup()
t.left(90)
t.forward(100)
t.pendown()
t.right(45)
t.forward(142)
t.right(90)
t.forward(142)
t.right(135)
t.forward(200)
t.end_fill()
t.penup()
t.goto(-100,-95)
t.pendown()
t.right(90)
t.begin_fill()
t.color("black","white")
for i in range(4):
t.forward(30)
t.right(90)
t.end_fill()
t.forward(15)
t.right(90)
t.forward(30)
t.left(90)
t.forward(15)
t.left(90)
t.forward(15)
t.left(90)
t.forward(30)
t.penup()
t.goto(-25,-145)
t.pendown()
t.begin_fill()
t.color("black","white")
t.left(180)
t.forward(70)
t.right(90)
t.forward(30)
t.right(90)
t.forward(70)
t.right(90)
t.forward(30)
t.end_fill()
t.penup()
t.goto(-5,-115)
t.pendown()
t.begin_fill()
t.color("black","yellow")
t.circle(3)
t.end_fill()
t.penup()
t.goto(154,198)
t.pendown()
t.begin_fill()
t.color("red","red")
t.circle(80)
t.end_fill()
t.penup()
t.goto(114,158)
t.pendown()
t.done()
\ 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