Commit ef4e7da2 by BellCodeEditor

auto save

parent fc0bc1cc
Showing with 19 additions and 16 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() screen = turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("pink")
len=screen.textinput("100","100") pen1 = turtle.Pen()
len=int(len) pen1.pencolor("yellow")
pen=turtle.Pen() pen2 = turtle.Pen()
pen.write("你好\nSB.",font=("Times",30,"normal")) pen2.pensize(10)
pen.hideturtle() pen2.pencolor("red")
len=60 pen1.penup()
pen.penup() pen1.goto(100,-100)
pen.goto(100,100) len = 50
pen.pendown() pen2.left(45)
pen.pensize(5) pen2.forward(2*len)
pen.pencolor("red") pen2.circle(len,180)
pen.left(45) pen2.right(90)
pen.forward(2*le pen2.circle(len,180)
pen2.forward(2*len)
pen.write("春晓\n春眠不觉晓,\n处处闻啼鸟。\n夜来风雨声,\n花落知多少。\n",font = ("Times",30,"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