Commit b3510c9e by BellCodeEditor

auto save

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