Commit 0133821a by BellCodeEditor

save project

parent bd6d6505
Showing with 11 additions and 26 deletions
import turtle username = "python"
userpassword = "123456"
screen=turtle.Screen() while True:
screen.bgcolor("light blue") name=input("请输入用户名:")
password=input("请输入密码:")
pen=turtle.Pen() if name==username and password==userpassword:
pen.penup() print("登录成功!")
pen.goto(100,-100) break
pen.write("诺依.\nturtle真好用。\n我会在画布上写字啦!"font=("times",30,"normal")) print("用户名和密码错误!请重新输入")
pen.hideturtle() print("欢迎来到贝尔编程!")
\ No newline at end of file
penl=turtle.Pen()
penl.pencolor("red")
penl.pensize(5)
len=60
penl.left(45)
penl.forward(2*len)
penl.circle(50,180)
penl.right(90)
penl.circle(50,180)
penl.forward(2*len)
penl.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