Commit 4e283cc4 by BellCodeEditor

save project

parent 07858a54
Showing with 41 additions and 0 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("light biue")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("我#####\n##########\n###########",font=("Times",20,"norma1"))
pen.hideturtle()
pen1=turtle.pen()
pen1.pencolor("red")
pen1.pensize(5)
len=60
pen1.left(45)
pen1.forward(2*len)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*len)
pen1.hideturtle()
turtle.done()
\ No newline at end of file
usename==kk
userpassword==1234567890
while True:
name=input("请输入用户名")
passwond=input("请输入密码")
if name==usename and passwond==userpassword: :
print("登录成功")
if name!=usename :
print("用户名错误")
continue
if passwond!=userpassword:
print("密码错误")
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