Commit 12cff792 by BellCodeEditor

auto save

parent 89301303
Showing with 10 additions and 10 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()#操作画布
screen.bgcolor("light blue") screen.bgcolor("light blue")#画布背景颜色
# len=screen.textinput("100","100") len=screen.textinput("100","100")#弹窗
# len=int(len) len=int(len)
pen=turtle.Pen() pen=turtle.Pen()
pen.write("你好\nSB.",font=("Times",30,"normal")) pen.write("你好\nSB.",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()#隐藏画笔
len=60 # len=60
pen.penup() pen.penup()#抬笔
pen.goto(100,100) pen.goto(100,100)
pen.pendown() pen.pendown()
pen.pensize(5) pen.pensize(5)#笔大小
pen.pencolor("red") pen.pencolor("red")#笔颜色
pen.left(45) pen.left(45)
pen.forward(2*len) pen.forward(2*len)
pen.circle(len,180) pen.circle(len,180)#画圆 len半径 180方向
pen.right(90) pen.right(90)
pen.circle(len,180) pen.circle(len,180)
pen.forward(2*len) pen.forward(2*len)
......
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