Commit 2282ac64 by BellCodeEditor

auto save

parent 370cf254
Showing with 51 additions and 1 deletions
"""import turtle
pen=turtle.Pen()
screen=turtle.Screen()
len=screen.textinput("提示","你想要多大的爱心啊?")
lovesize=int(len)
screen.bgcolor("red")
pen.write("你好啊,我是你儿子,\n我皮痒了,求打",font=("Times",20,"normal"))
pen.penup()
pen.goto(50,100)
pen.pendown()
pen.pensize(5)
pen.pencolor("blue")
pen.left(45)
pen.forward(lovesize*2)
pen.circle(lovesize,180)
pen.right(90)
pen.circle(lovesize,180)
pen.forward(lovesize*2)
pen.hideturtle()
turtle.done()"""
i=3
username="pyt"
userpassword="123789"
while True:
name=input("赶紧给爷输入账号")
password=input("赶紧给爷输入密码")
if name==username and password==userpassword:
print("哟西,正确")
break
if name!=username:
print("八嘎,错了")
continue
if password!=userpassword
print("错了")
print("正确")
\ No newline at end of file
i=3
username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
while True:
name=input("输")
password=input("输")
if username==name and userpassword==password :
break
elif username!=name :
print("账错")
i=i-1
else :
print("密码错误")
i=i-1
print("成功")
# 请用input()实现用户输入账号、密码的功能
......
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