Commit eb2672d8 by BellCodeEditor

save project

parent 5212df28
Showing with 19 additions and 19 deletions
import turtle
p=turtle.Pen()
b=1
p.speed("fastest")
for i in range (300):
p.forward(b)
b+=1
p.left(90)
turtle.done()
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" userpassword = "123456"
i=3 i=
while True: # 保存在服务器数据库中的用户密码(正确的密码) while True:
if i>0: if i>0:
name=input("请输入") a=input("输入用户名")
pesword=input("请输入") b=input("输入密码")
i-=1 i-=1
if name==username and userpassword==pesword: if a==username and b==userpassword:
print("成功") print("成功")
break break
elif username!=a:
elif name!=username: print("uhuh")
print("用户名错")
continue
else:
print("密码错") print("密码错")
else: else:
print("被锁定") print("hjhj")
exit() exit()
\ No newline at end of file
print("欢迎")
# 请用input()实现用户输入账号、密码的功能
# 如果用户输入的账号、密码正确,提示登陆成功
\ 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