Commit 91e3c3d6 by BellCodeEditor

save project

parent ce7de6a7
Showing with 13 additions and 7 deletions
# 和你的小伙伴用列表讲讲桃园结义的故事,并说说这其中运用了哪些列表知识: import random
# 来,我给你起个头~
# 从前啊,有三个bro,分别是:刘备、关羽、张飞...
b=['关羽','夏侯惇','曹操','袁术'] key = "abcdefg使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
b.pop(0) message = "诺依,周末一起去看动漫展吧!"
print(b) key_massage = ""
\ No newline at end of file
for i in message:
str2 = i
str2 = random.choice(key)
str3 = random.choice(key)
text = str1 + str2 + str3
key_massage = key_massage+text
print(key_massage)
\ 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