Commit af7af9ff by BellCodeEditor

save project

parent 811276df
Showing with 7 additions and 5 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
a=100
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen() screen=turtle.Screen()
a=screen.textinput("问题","多大的爱心,快说,赶紧的")
b=int(a)
screen.bgcolor("green") screen.bgcolor("green")
pen.pensize(5) pen.pensize(5)
pen.speed(0)
pen.pencolor("red") pen.pencolor("red")
pen.left(45) pen.left(45)
pen.forward(a) pen.forward(b)
pen.circle(a/2,180) pen.circle(b/2,180)
pen.right(90) pen.right(90)
pen.circle(a/2,180) pen.circle(b/2,180)
pen.forward(a) pen.forward(b)
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write("你好,\n老娘们儿",font=("Times",50,"normal")) pen.write("你好,\n老娘们儿",font=("Times",50,"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