Commit cf3761fc by BellCodeEditor

save project

parent c1fc3054
Showing with 12 additions and 11 deletions
import random while True:
key="idewr8743 qc n49832q,0ce328j^%$(*&$#QREY:K>PAOewcqsowqp而沃尔沃牛尾u吃呢" import random
message = "诺依,周末一起去看动漫展吧!" key="idewr8743 qc n498,0ce328j^%$(*&$#QREYOewcqsowqp而沃尔沃牛尾u吃呢"
no="jswnucdwnwdijc^%@^*&@#(&iumewc)" message = input("请输入你要加密的一句话:")
text = "" no="jswnucdwnwdijc^%@^*&@#(&iumewc)"
# 请使用索引的知识,取出message所有元素(不用遍历的方式) text = ""
for i in message: # 请使用索引的知识,取出message所有元素(不用遍历的方式)
for i in message:
str1 = i str1 = i
str2 = random.choice(key) str2 = random.choice(key)
str3 = random.choice(key) str3 = random.choice(key)
text = text + str1 + str2 + str3 text = text + str1 + str2 + str3
text=list(text) text=list(text)
text.insert(random.randint(1,13),no) text.insert(random.randint(1,13),no)
text="".join(text) text="".join(text)
print(text) print(text)
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