Commit bfba51c3 by BellCodeEditor

auto save

parent 5aa3ad26
Showing with 4 additions and 8 deletions
# 利用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=int(len)
pen=turtle.Pen() pen=turtle.Pen()
pen.write("nihao,\nnuoyi,\nhengaoyinshoudaonideheka,xiexieni.\n",font=("Times",30,"normal")) pen.penup()
pen.hideturtle() pen.goto(100,-100)
len=60 pen.write("Hi,诺依~\n用python写电子贺卡真是太有趣了~、n我也喜欢python~\n——悟空")
pen \ No newline at end of file
turtle.done()
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