Commit b5566677 by BellCodeEditor

save project

parent 706c2cac
Showing with 11 additions and 6 deletions
# 利用write()帮助悟空给诺依回信吧~
#导入模块
import turtle
# #创建画笔
# pen = turtle.Pen()
# #书写回信
# pen.write("这是第一行,\n这是第二行",font = ("宋体",20))
# pen.hideturtle()
# turtle.done()
#设置背景颜色
sc = turtle.Screen()
sc.bgcolor("pink")
#创建画笔
pen = turtle.Pen()
#移动画笔位置
pen.penup()
pen.goto(-100,-100)
#书写回信
pen.write("这是第一行,\n这是第二行",font = ("宋体",20))
pen.hideturtle()
#画爱心函数
def love(width):
pen1 = turtle.Pen()
......
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