Commit 57a68dd8 by BellCodeEditor

save project

parent 21ffc18f
Showing with 8 additions and 23 deletions
# 利用write()帮助悟空给诺依回信吧~ students=["悟空","小贝","八戒","波奇"]
import turtle students.remove("八戒")
screen=turtle.Screen() students.extend("诺依")
screen.bgcolor("green") red=[0:2]
pen=turtle.Pen() blue=[2:5]
pen.penup() print(red)
pen.goto(100,-100) print(blue)
pen.write("随便写一点",font=("Times",30,"normal")) \ No newline at end of file
pen.hideturtle()
pen1=turtle.Pen()
i=screen.textinput("找茬框""这瓜多少钱一斤")
lovesize=int(i)
pen1.pensize(5)
pen1.pencolor("red")
pen1.left(45)
pen1.forward(2*lovesize)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(lovesize,180)
pen1.forward(2*lovesize)
pen1.hideturtle()
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