Commit 8c5684e7 by BellCodeEditor

auto save

parent 5b91e2be
Showing with 28 additions and 3 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen
import turtle
#背景颜色
screen=turtle.Screen()#导入screen函数设置画布
screen.bgcolor("blue")#设置画布颜色
#写字
pen=turtle.Pen()#导入画笔
pen.penup()#抬笔
pen.goto(100,-100)#移动到(100,-100)
pen.write("雷霆嘎巴,\n无情哈拉少,\nZBC\n",font=("Times",30,"normal"))
pen.hideturtle()#隐藏画笔
#画爱心
pen1=turtle.Pen()#导入画笔
pen1.pencolor("pink")#设置颜色
pen1.pensize(5)#设置字体大小
len=80
pen1.left(45)#向左旋转45度
pen1.forward(2*len)#移动(100)步
pen1.circle(len,180)#画半圆
pen1.right(90)#向右旋转(90)度
pen1.circle(len, 180)#画半圆
pen1.forward(2*len)#移动(100)步
pen1.hideturtle()#隐藏画笔
turtle.done()#停止绘画
# import turtle
# screen=turtle.Screen()
# screen.texeinput("姓名","你的名字是:")
# 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