Commit 71760232 by BellCodeEditor

auto save

parent c2f1308f
Showing with 20 additions and 2 deletions
# 利用write()帮助悟空给诺依回信吧~
\ No newline at end of file
# 利用write()帮助悟空给诺依回信吧~
import turtle#导入模块
pen = turtle.Pen()#拿一支笔出来
screen = turtle.Screen()#
screen.bgcolor("pink")
pen.penup()#把笔抬起来
pen.goto(100,-100)#把笔移到到指定的位置
pen.write("春晓\n春眠不觉晓\n处处蚊子咬\n夜来巴掌声\n蚊子死多少",
font=("楷体",20,"normal")) #用笔写字
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)#让笔移到
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