Commit 50336a0c by BellCodeEditor

save project

parent a30b718f
Showing with 7 additions and 1 deletions
message = "大香蕉,一条大香蕉,hi!你的感觉真的很奇妙"
key="前轱辘不转后轱辘转思密达"
key2="你干嘛"
import random
# 请对message进行遍历,取出所有元素
m = ""
......@@ -9,5 +10,10 @@ for i in message:
str3=random.choice(key)
text=str1+str2+str3
m=m+text
print(m)
listm=list(m)
index=random.randint(0,len(listm))
listm.insert(index,key2)
m1="".join(listm)
print(m1)
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