Commit 3a7f7842 by BellCodeEditor

auto save

parent e3160ea5
Showing with 35 additions and 0 deletions
gl=int(input(""))
m=0
if gl<=3:
print("14")
elif gl>3 and gl<=10:
m=2.4*(gl-3)
print(m+14)
elif gl>10:
m=(2.4*1.5)*(gl-10)+2.4*7
print(m+14)
\ No newline at end of file
import random
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句,
ss="放大,三个地方,双方和解,额外的好处经,济丰,富内涵v面,具人的,官方"
message = "诺依,周末一起去看动漫展吧!"
key_message=""
# 请使
for i in range(len(message)):
a=message[i]
str1=random.choice(key)
str2=random.choice(key)
str3=a+str1+str2
key_message=key_message+str3
#print(key_message)
b=list(key_message)
#print(b)
random.randint(0,len(key_message))
b.insert(6,ss)
#print(b)
bb="".join(b)
print(bb)
\ 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