Commit 49eefd61 by BellCodeEditor

auto save

parent 0f9f4071
Showing with 8 additions and 1 deletions
...@@ -7,4 +7,10 @@ message = "诺依,周末一起去看动漫展吧!" ...@@ -7,4 +7,10 @@ message = "诺依,周末一起去看动漫展吧!"
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
text = ""# 创建text变量赋初始值
for i in message:# 使用for循环遍历message字符串
str1 = i# 创建str1保存遍历的字符
str2 = random.choice(key)# 创建str2保存key私钥中随机的字符,使用choice
str3 = random.choice(key)# 创建str3保存key私钥中随机的字符,使用choice
text = text + str1 + str2 + str3# 创建text变量后面加上str1,str2,str3连接后的内容
print(text)# 输出text
\ 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