Commit bd59e165 by BellCodeEditor

save project

parent 5069c938
Showing with 17 additions and 10 deletions
username = "python" import random
userpassword = "123456" key = "jioqfgheewgrwfw"
while True: message = input("请输入:")
name = input("请输入用户名:") key_message=""
password = input("请输入密码:") noise = "hiuuuu"
if name == username and password == userpassword: for i in message:
print("登录成功!") str1 = i
print("用户名和密码错误!请重新输入") str2 = random.choice(key)
print("欢迎来到贝尔编程!") str3 = random.choice(key)
\ No newline at end of file text = str1+str2+str3
key_message = key_message + text
list_message=list(key_message)
index = random.randint(0,len(key_message))
list_message.insert(index,noise)
result_message = "".join(list_message)
print(result_message)
\ 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