Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / lesson7_2

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • lesson7_2
  • diy2.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · 9c61f686
    BellCodeEditor committed a year ago
    9c61f686
diy2.py 577 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
message = "Happy mother`s Day,mam."
import random
key="你干嘛你喊嘛看开点看到"
key2 ="kgkfkfkfkfkfkfkfkfkfkfkfkfkfkkccfkfkflfkffkfkfkfkffkfkfkfkfkfkfkkfkfk"
# 请对message进行遍历,取出所有元素
m = ""
for i in message:
    str1 = i
    str2 = random.choice(key)
    str3 = random.choice(key)
    str4 = random.choice(key)
    str5 = random.choice(key)
    str6 = random.choice(key)
    text = str1+str2+str3+str4+str5+str6
    m = m+ text

listm = list(m)
index = random.randint(0,len(listm))
listm.insert(index,key2)
m = "".join(listm)
print(m)