Commit ec4facd8 by BellCodeEditor

save project

parent cb11d2d6
Showing with 20 additions and 0 deletions
#导入模块
import turtle
#背景颜色
screen=turtle.Screen()
screen.bgcolor("blue")
#准备画笔
pen_a=turtle.Pen()
pen_a.color("black")
pen_a.speed(99)
pen_a.pensize(1)
pen_a.penup()
pen_a.goto(100,-100)
#写字
pen_a.write("好\n\n点",font=("Times",30,"normal"))
#隐藏画笔
pen_a.hideturtle()
#准备画笔
pen_b=turtle.Pen()
pen_b.color("red")
pen_b.speed(99)
pen_b.pensize(1)
#画圆
pen_b.fillcolor("red")
pen_b.begin_fill()
pen_b.left(45)
pen_b.forward(100)
pen_b.circle(50,180)
pen_b.right(90)
pen_b.circle(50,180)
pen_b.forward(100)
pen_b.end_fill()
#隐藏画笔
pen_b.hideturtle()
#固定画布
......
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