Commit 17024101 by BellCodeEditor

save project

parent 530783a4
Showing with 1 additions and 2 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
c=screen.textiput("提示","你要画多大的爱心) c=screen.textiput("提示","你要画多大的爱心")
b=int(c) b=int(c)
screen.bgcolor("light blue") screen.bgcolor("light blue")
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
pen.goto(-100,0) pen.goto(-100,0)
pen.write("Hi\n处处闻啼鸟。",font=("Times",30,"normal")) pen.write("Hi\n处处闻啼鸟。",font=("Times",30,"normal"))
pen.hideturtle()
turtle.done() turtle.done()
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pensize(5) pen1.pensize(5)
......
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