Commit 69c832c3 by BellCodeEditor

save project

parent dcfbd77a
Showing with 20 additions and 4 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
len=screen.textinput("ZFX","ZFX")
pen=turtle.Pen()
pen.penup()
pen.goto(-100,100)
pen.pendown()
pen.pensize(10)
pen.pencolor("blue")
for i in range(4):
pen.forward(200)
pen.right(90)
pen.hideturtle()
turtle.done()
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle # 先导入turtle模块 import turtle
screen=turtle.Screen() # 将turtle.Screen()赋值给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("祝你生日快乐!",font=("Times",30,"normal")) pen.write("祝你生日快乐!",font=("Times",30,"normal"))
......
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