Commit d7e85e5c by BellCodeEditor

auto save

parent dae3daf2
Showing with 12 additions and 22 deletions
# 利用write()帮助悟空给诺依回信吧~ import random
import turtle list=["星期一","星期三","星期六","星期二","星期四","星期五","星期日"]
screen=turtle.Screen() a=random.choice(list)
screen.bgcolor("light blue") if a =="星期一":
len=screen.textinput("100","100") print("今天学钢琴~")
len=int(len) elif a =="星期三":
pen=turtle.Pen() print("今天学编程~")
pen.write("你好\nSB.",font=("Times",30,"normal")) elif a =="星期六":
pen.hideturtle() print("今天学英语~")
len=60 else:
pen.penup() print("今天学国学~")
pen.goto(100,100) \ No newline at end of file
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
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