Commit 5e4f33eb by BellCodeEditor

auto save

parent c66a449e
Showing with 6 additions and 6 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("你好\nSB.",font=("Times",30,"normal")) pen.write("你好\nSomeBobrdy.",font=("Times",30,"normal"))#写文本
pen.hideturtle() pen.hideturtle()
len=60 len=60
pen.penup() pen.penup()
......
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