Commit 3597d2b7 by BellCodeEditor

auto save

parent 60ef46c0
Showing with 17 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle #导入模块
pen1=turtle.Pen() #创建爱心画笔
pen1.pensize(5) #设置粗细
pen1.pencolor("red") #设置画笔颜色
pen1.left(45) #画爱心
pen1.forward(100)
pen1.circle(50,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
# pen1.penup()
#pen=turtle.Pen() #创建写字画笔
pen1.penup() #抬笔
pen1.goto(100,-100) #移到
pen1.write("你好\n呵呵",font=("Times",50,"normal")) #写字
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