Commit 96102197 by BellCodeEditor

save project

parent 7e8fb6b0
Showing with 6 additions and 4 deletions
...@@ -3,19 +3,19 @@ import turtle ...@@ -3,19 +3,19 @@ import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen() screen=turtle.Screen()
pen.speed() pen.speed('fast')
pen.hideturtle() pen.hideturtle()
screen.bgcolor('white') screen.bgcolor('white')
i=0 i=0
while i<135: while i<500:
pen.pencolor('black') pen.pencolor('black')
pen.penup() pen.penup()
pen.goto(0,0) pen.goto(0,0)
pen.forward(300) pen.forward(300)
pen.pendown() pen.pendown()
pen.circle(50) pen.circle(50)
pen.left(2) pen.left(5)
i+=1 i+=1
turtle.done() turtle.done()
\ No newline at end of file
...@@ -4,5 +4,5 @@ monster = {'盘丝洞':'蜘蛛精','白骨洞':'白骨精','大雁塔':'花妖' ...@@ -4,5 +4,5 @@ monster = {'盘丝洞':'蜘蛛精','白骨洞':'白骨精','大雁塔':'花妖'
# 打印出大雁塔 # 打印出大雁塔
print(area[2]) print(area[2])
# 向字典中添加 '地府':'僵尸' # 向字典中添加 '地府':'僵尸'
monster.('地府','僵尸') monster['地府']='僵尸'
print(monster) print(monster)
\ 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