Commit 9c3f1d20 by BellCodeEditor

save project

parent 318b8420
Showing with 11 additions and 17 deletions
import turtle
# pen=turtle.Pen() username = "小名"
# pen.write("嗨,"font=("Times",30,"normal")) userpassword = "123456"
# pen.hideturtle() while True:
# turtle.done() name = input("请输入用户名:")
# import turtle password = input("请输入密码:")
pen1=turtle.Pen() if name == username and password ==userpassword:
pen1.color("red") print("登陆成功")
pen1.left(45) else:
pen1.forward(100) print("登陆失败")
pen1.circle(50,180) \ No newline at end of file
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
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