Commit 8156cfb4 by BellCodeEditor

auto save

parent e353159c
Showing with 35 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
#导入turtle模块
import turtle
screen=turtle.Screen()
#设置画布颜色
screen.bgcolor("pink")
#创建画笔
pen=turtle.Pen()
pep()n.penu
pen.goto(100,0)
pen.write("编辑器真好用",font=("Times",20,"normal"))
#隐藏鼠标
pen.hideturtle()
pen.pendown()
pen1=turtle.Pen()
#设置画笔颜色
pen1.pencolor("red")
#设置画笔粗细
pen1.pensize(20)
#隐藏画布1
pen1.hideturtle()
#画爱心
#旋转方向
pen1.left(45)
#边长为100
pen1.forward(100)
#画半圆
pen1.circle(50,180)
#右转
pen1.right(90)
pen1.circle(50,180)
#边长为100
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