Commit 1ec1b191 by BellCodeEditor

save project

parent cc8d624d
Showing with 3 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
# 导入模块
import turtle import turtle
screen=turtle.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("你好\n你好\n你好",font=("Times",30,"normal")) pen.write("你好\n你好\n你好",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()
#画图
len=60 len=60
pen.fillcolor("green") pen.fillcolor("green")
pen.begin_fill() pen.begin_fill()
......
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