Commit ccb9bfe4 by BellCodeEditor

save project

parent 645b47b7
Showing with 7 additions and 21 deletions
import turtle username="python"
screen=turtle.Screen() userpassword="123456"
screen.bgcolor("light blue") if name !=username:
pen=turtle.Pen() print("名字错了,重写")
pen.penup() if password !=userpassword:
pen.goto(100,-100) print("密码错了,重写")
pen.write("hi,诺依,我\n收到了你的信",font=("Times",20,"normal")) \ No newline at end of file
pen.hideturtle()
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(5)
len=60
pen1.left(45)
pen1.forward(len*2)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(len*2)
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