Commit 9f915a8d by BellCodeEditor

save project

parent dd1209b2
import os,time,opencomputer,yzm
opencomputer.opencomputer()
time.sleep(2)
yzm.yzm3()
print('正在进入系统')
os.sysem('cls')
int(input('芦苇式餐厅管理系统'))
\ No newline at end of file
# # 这是悟空为花果山小猴做臂力测试的程序代码
# name=input('你叫啥名啊?')
# power=int(input('你臂力多少啊?'))
# list_hero=['猴三',10,'猴一',21,'猴五',22,'猴队长',29,'猴七',30]
# for i in range(len(list_hero)):
# if i%2==1 and list_hero[i]>=power:
# list_hero.insert(i-1,name)
# list_hero.insert(i,power)
# break
# print(list_hero)
# # 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典
dict_hero= {'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30}
print(dict_hero)
import random
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
message = "诺依,周末一起去欢乐谷吧!"
# 请使用私钥key,对message进行加密
key_message = ""
for i in message:
str1 = i
str2 = random.choice(key)
str3 = random.choice(key)
text = str1 + str2 + str3
key_message = key_message + text
noice = "liaoyuxin"
key_message = list(key_message)
key_message.insert(random.randint(0,len(key_message)),noice)
key_message = "".join(key_message)
print(key_message)
\ No newline at end of file
import os,time
def opencomputer2():
os.system('cls')
# 145格子
open_dot = "正在开机"
print('欢迎来到芦苇式电脑系统')
time.sleep(2)
print('请等待开机时间')
time.sleep(1)
for i in range(1):
os.system('cls')
open_dot = open_dot + '.'
print(open_dot)
time.sleep(1)
os.system('cls')
print('已开机')
# opencomputer2()
\ No newline at end of file
import random,os,time
yzm2 = ''
def random_yzm():
global yzm2
yzm = ["a",'b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','1','2','3','4','5','6','7','8','9','0','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
for i in range(5):
yzm2 = yzm2 + random.choice(yzm)
def yzm3():
os.system("cls")
global yzm2
while True:
yzm2 = ''
random_yzm()
print(yzm2)
user_yzm = input('请输入验证码')
if user_yzm == yzm2:
print("验证通过")
time.sleep(1)
break
else:
os.system("cls")
print("验证码输入不正确")
time.sleep(2)
# yzm3()
\ 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