Commit 1ce0b46b by BellCodeEditor

auto save

parent 00f81f92
Showing with 5 additions and 2 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
len=60
pen=turtle.Pen() pen=turtle.Pen()
pen1=turtle.Pen() pen1=turtle.Pen()
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
screen = turtle.Screen() screen = turtle.Screen()
len=screen.textinput()
screen.bgcolor("pink") screen.bgcolor("pink")
pen.pensize(20) pen.pensize(20)
pen1.pencolor('red') pen1.pencolor('red')
pen1.left(45) pen1.left(45)
pen1.forward(100) pen1.forward(2*len)
pen1.circle(50,180) pen1.circle(50,180)
pen1.left(-90) pen1.left(-90)
pen1.circle(50,180) pen1.circle(50,180)
pen1.forward(100) pen1.forward(100)
pen.write("妈妈明天吃啥?,\n我想要一只鹦鹉",font=("Time",10,"normal")) pen.write("妈妈明天吃啥?,\n我想要一只鹦鹉",font=("Time",15,"normal"))
turtle.done() 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