Commit 2046b6cb by BellCodeEditor

save project

parent edbd205c
Showing with 31 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
#画布颜色
screen=turtle.Screen()
screen.bgcolor("pink")
#画笔
pen=turtle.Pen()
pen.hideturtle()
pen.penup()
pen.goto(100,0)
pen.write("真好玩",font=("Times",30,"normal"))
#隐藏鼠标
pen.hideturtle()
pen1=turtle.Pen()
#画笔粗细
pen1.pensize(20)
#画笔颜色
pen1.pencolor("red")
pen1.pendown()
pen1.hideturtle()
#画爱心
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
#画半圆
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
#固定
turtle.done()
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