Commit b3510c9e by BellCodeEditor

auto save

parent b1a0ba64
Showing with 18 additions and 17 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
# screen=turtle.Screen()
# screen.bgcolor("light blue")
pen=turtle.Pen()
pen.write("你好/nfuck.",font=("Times",30,"normal"))
pen.hideturtle()
# pen.write("你好/nfuck.",font=("Times",30,"normal"))
# pen.hideturtle()
pen.penup()
pen.goto(100,100)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(100)
pen.circle(50,180)
pen.right(90)
pen.circle(50,180)
pen.forward(100)
turtle.done()
\ No newline at end of file
pen.penup() #抬笔
pen.goto(100,100) #移到100,100
pen.pendown() #落笔
pen.pensize(5) #粗细设为5
pen.pencolor("red") #颜色设为红色
pen.left(45) #左转45度
pen.forward(100) #移动100步
pen.circle(50,180) #半径50,旋转180度,半圆
pen.right(90) #右转90
pen.circle(50,180) #半径50,旋转180度,半圆
pen.forward(100) #移动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