Commit 6495b5fe by BellCodeEditor

auto save

parent 1bad0edb
Showing with 83 additions and 11 deletions
...@@ -3,12 +3,12 @@ import turtle ...@@ -3,12 +3,12 @@ import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen() screen=turtle.Screen()
pen.speed() pen.speed(-100)
pen.hideturtle() pen.hideturtle()
screen.bgcolor('black') screen.bgcolor('black')
i=0 i=0
while i<135: while i<180:
pen.pencolor('pink') pen.pencolor('pink')
pen.penup() pen.penup()
pen.goto(0,0) pen.goto(0,0)
......
# 勇于挑战的创造师,下面的代码犯了两类典型错误,请你把bug揪出来吧。 # import turtle
area = ['盘丝洞','白骨洞','大雁塔'] # g=turtle.Pen()
monster = {'盘丝洞':'蜘蛛精','白骨洞': '白骨精','大雁塔':'花妖'} # g.fillcolor("red")
# 打印出大雁塔 # g.begin_fill()
print(area[3]) # g.pensize(3)
# 向字典中添加 '地府':'僵尸' # g.fd(80)
monster.append('地府','僵尸') # g.goto(20,0)
print(monster) # g.rt(90)
\ No newline at end of file # g.fd(20)
# g.lt(90)
# g.fd(40)
# g.lt(90)
# g.fd(20)
# g.penup()
# g.goto(80,0)
# g.pendown()
# g.end_fill()
# g.fillcolor("orange")
# g.begin_fill()
# for i in range(2):
# g.fd(50)
# g.rt(135)
# g.fd(50)
# g.rt(45)
# g.end_fill()
# g.fillcolor("yellow")
# g.begin_fill()
# g.fd(150)
# g.lt(30)
# g.fd(80)
# g.lt(120)
# g.fd(80)
# g.lt(30)
# g.fd(150)
# g.end_fill()
# g.fillcolor("orange")
# g.begin_fill()
# for i in range(2):
# g.rt(45)
# g.fd(50)
# g.rt(135)
# g.fd(50)
# g.end_fill()
# g.hideturtle()
# turtle.done()
# import turtle
# a=turtle.Pen()
# a.speed(-20)
# a.rt(90)
# for i in range(90):
# a.fd(0.5)
# a.lt(2)
# a.fd(100)
# a.penup()
# a.goto(115,70)
# a.pendown()
# a.fillcolor("blue")
# a.begin_fill()
# for i in range(3):
# a.circle(30,180)
# a.rt(180)
# a.rt(180)
# a.circle(90,-180)
# a.end_fill()
# a.hideturtle()
# turtle.done()
import turtle
q=turtle.Pen()
for i in range(5):
q.pencolor("black")
q.fd(200)
q.pencolor("red")
q.fillcolor("red")
q.begin_fill()
q.circle(20)
q.end_fill()
q.lt(144)
turtle.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