Commit f777951f by BellCodeEditor

auto save

parent 370cf254
import random
yzm = ""
for i in range(6):
random_list = ["1","2","3","4","a","b","c"]
random_str=random.choice(random_list)
yzm += random_str
print(yzm)
import HS
username="sb"
userpassword="dsbs123"
sbc=3
while True:
user=input("是何人在此,速速报上名来!")
password=input("身份!暗号!")
if username==user and userpassword==password:
        print("确认身份,情报拿来")
        break
        
    if username != user:
       print("隐瞒身份,杀!")
       sbc=sbc-1
    elif userpassword != password:
        print("冒充sb,杀")
        sbc=sbc-1
    print("你是何人,杀!")
    if sbc==0:
        print("午时已到,逆贼,死!\n game over.")
        exit()
print("欢迎回来,召唤师。")
 sp=input("验证码")
if sp !=yzm:
    print("你是何人,杀!")
    exit() 
else:
    print("欢迎回来,召唤师。")
import test
print(test.yzm)
username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
i = 3
while True:
if i == 0:
print("错误次数太多,拒绝登陆")
exit() #结束程序
# i = i-1
i -= 1
user = input("please input user name:")
password = input("please input user password:")
# 请用input()实现用户输入账号、密码的功能
if username == user and userpassword == password :
print("登陆成功")
break #结束循环
if username != user:
print("用户名错误")
continue #跳出本次循环
if userpassword != password:
print("用户密码错误")
# 请用input()实现用户输入账号、密码的功能
print("登陆失败")
print("欢迎你来到贝尔编程世界")
# 如果用户输入的账号、密码正确,提示登陆成功
\ No newline at end of file
import random
yzm = ""
random_list = ["1","2","3","a","b","c"]
n = random.randint(4,6)
for i in range(n):
random_str = random.choice(random_list)
yzm += random_str
# print(yzm)
#外循环负责打印九九乘法表的每一行
for i in range(1,10):
#内循环负责打印九九乘法表的每一列
for j in range(1,i+1):
#end="|",每个算式用“|”分隔
print(i,"x",j,"=",i*j,end="| ")
#打印完一列后换行
print()
print("----------"*i)
\ 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