diy3.py
560 Bytes
while True:
import random
key="idewr8743 qc n498,0ce328j^%$(*&$#QREYOewcqsowqp而沃尔沃牛尾u吃呢"
message = input("请输入你要加密的一句话:")
no="jswnucdwnwdijc^%@^*&@#(&iumewc)"
text = ""
# 请使用索引的知识,取出message所有元素(不用遍历的方式)
for i in message:
str1 = i
str2 = random.choice(key)
str3 = random.choice(key)
text = text + str1 + str2 + str3
text=list(text)
text.insert(random.randint(1,13),no)
text="".join(text)
print(text)