Commit 9f1e8792 by BellCodeEditor

auto save

parent 1ce0b46b
Showing with 6 additions and 3 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
len=60 screen = turtle.Screen()
pen=turtle.Pen() pen=turtle.Pen()
pen1=turtle.Pen() pen1=turtle.Pen()
len =screen.textinput("提示","您要多大的爱心?")
len =int (len)
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')
...@@ -16,6 +18,6 @@ pen1.circle(50,180) ...@@ -16,6 +18,6 @@ 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",15,"normal")) pen.write("妈妈明天吃啥?,\n我想要一只鹦鹉",font=("Time",10,"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