Commit d9ed3323 by BellCodeEditor

save project

parent 18891748
import random
# jiji
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
message=input("请输入你要加密的屁话:")
# 请使用jijikey,对message进行加密;
key_message=""
for i in range(len(message)):
a=message[i]
b=random.choice(key)
c=random.choice(key)
d=a+b+c
key_message=key_message+d
str1="hanqixuansadbee"
index=random.randint(0,len(key_message))
list2=list(key_message)
list2.insert(index,str1)
key_newmkessage="".join(list2)
print(key_message)
\ No newline at end of file
text="周末一起去登dua🐺吧"
li_text=list(text)
print(li_text)
Windows PowerShell
版权所有 (C) Microsoft Corporation。保留所有权利。
尝试新的跨平台 PowerShell https://aka.ms/pscore6
PS C:\Users\86189\Documents\lesson7_4> & C:/Users/86189/AppData/Roaming/pythonWin/python.exe c:/Users/86189/Documents/lesson7_4/ssssssssssssssssssssssssssssssssssssss.py
['周', '末', '一', '起', '去', '登', 'd', 'u', 'a', '🐺', '吧']
PS C:\Users\86189\Documents\lesson7_4>
\ 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