Commit bbd44f84 by BellCodeEditor

save project

parent e361a7f8
Showing with 39 additions and 1 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
import turtle #导入turtle模块
#添加背景颜色
screen=turtle.Screen()
screen.bgcolor("light blue")
......
import turtle
pen=turtle.Pen()
pen.left(45)
pen.forward(100)
pen.left(90)
pen.circle(50,180)
pen.right(180)
pen.forward(100)
pen.right(90)
pen.circle(-50,180)
turtle.done()
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen.pencolor("blue")
pen.circle(50)
pen.penup()
pen.forward(100)
pen.pendown()
pen.pencolor("black")
pen.circle(50)
pen.penup()
pen.forward(100)
pen.pendown()
pen.pencolor("red")
pen.circle(50)
pen.penup()
pen.goto(50,-70)
pen.pendown()
pen.pencolor("yellow")
pen.circle(50)
pen.penup()
pen.forward(100)
pen.pendown()
pen.pencolor("green")
pen.circle(50)
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