Commit 1de77621 by BellCodeEditor

auto save

parent 57665d41
Showing with 39 additions and 5 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
#导入模块
import turtle import turtle
# pen=turtle.pen pen=turtle.Pen()
# pen.write("你好呀!",font=("Times",30,"normal")) pen.goto(100,-120)
# turtle.done() pen.write("我爱中国",font=("Times",30,"normal"))
# 画圆 pen.hideturtle()
pen1=turtie.Pen #画圆
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(5)
len=screen.textinput("提示","你想考多少分?")
lovesize=int(len)
pen1.left(45)
pen1.forward(lovesize*2)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(lovesize,180)
pen1.forward(lovesize*2)
pen1.hideturtle()
turtle.done()
import turtle
screen=turtle.Screen()
screen.textinput("姓名框","你的名字是:")
turtle.done()
import turtle
pen=turtle.Pen()
pen.goto(100,-120)
pen.write("我爱中国",font=("Times",30,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pensize(5)
pen1.pencolor("red")
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.hideturtle()
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