Commit f848fc77 by BellCodeEditor

save project

parent e5ba75a4
Showing with 9 additions and 1 deletions
...@@ -2,6 +2,7 @@ m = "妈妈母情节快乐!" ...@@ -2,6 +2,7 @@ m = "妈妈母情节快乐!"
import random import random
# 请对message进行遍历,取出所有元素 # 请对message进行遍历,取出所有元素
key = "关于推断出远古给桃花谷韩剧韩国举报规划 " key = "关于推断出远古给桃花谷韩剧韩国举报规划 "
key2 = "@#$%!@#$%^&*()!"
t = "" t = ""
for i in m: for i in m:
str1 = i str1 = i
...@@ -9,5 +10,11 @@ for i in m: ...@@ -9,5 +10,11 @@ for i in m:
str3 = random.choice(key) str3 = random.choice(key)
text = str1+str2+str3 text = str1+str2+str3
t = t+text t = t+text
print(t)
listm = list(m)
index = random.randint(0,len(listm))
listm.insert(index,key2)
m = "".join(listm)
print(m)
\ 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