Commit d8371b27 by BellCodeEditor

save project

parent 6360a049
Showing with 43 additions and 2 deletions
import random
key="我的世界最好玩!"
str=random.choice(key)
print(str)
\ No newline at end of file
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
# 请使用索引的知识,取出message所有元素(不用遍历的方式) # 请使用索引的知识,取出message所有元素(不用遍历的方式)
len() length=len(message)
\ No newline at end of file i=0
while i < length:
element=message[i]
print(element)
i +=1
\ No newline at end of file
import random
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"*/
you=kbjjlikik90--==-0897875311234567890-)(**&^^%"%!@#$#$$#%$#@$%$#@#$%$#$%^%$#RFGHGFBNBHGFVBNNHBGFRGHTGHMDS%#YJFYT$#@VRJ#@EQ$RW%YU*//")
# 要加密语句
message = "今天天气真好!出去玩吧。"
ss=" "
# 请使用私钥key,对message进行加密
for i in message:
str1=i
str2=random.choice(key)
str3=random.choice(key)
text=str1+str2+str3
ss=ss+text
list_message=list(key_message
list_message.insert(5,you)
result_message=".join(list
message="诺依,周末一起去看动漫展吧!"
length=len(message)
i=0
while i <length:
element=message[i]
print(element)
i+=1
\ 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