Commit 2881c065 by BellCodeEditor

auto save

parent f989c38e
Showing with 19 additions and 3 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
pen.write("诺依,\n我也会你这种了,\n我是悟空,python好神奇!",font=("times"",10,"normal")) screen=turtle.Screen()
turtle.done() screen.bgcolor("pink")
\ No newline at end of file len=screen.textinput("dfsdd","dddss")
losesize=int(len)
pen.penup()
pen.goto(100,-100)
pen.write("诺依,\n我也会你这种了,\n我是悟空,python好神奇!",font=("times",10,"normal"))
pen1=turtle.Pen()
pen1.pensize(10)
pen1.pencolor("red")
pen1.left(45)
pen1.fd(2*len)
pen1.circle(len,180)
pen1.left(-90)
pen1.circle(len,180)
pen1.fd(2*len)
turtle.done()
\ No newline at end of file
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