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 · 493940c8
    BellCodeEditor committed 3 years ago
    493940c8
diy2.py 413 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
import random
key="sheueu"
message="诺依,周末一起去看动漫展吧"
key_message=""



for i in message:
    str3=i
    str2=random.choice(key)
    str1=random.choice(key)
    text=str3+str2+str1
    key_message=key_message+text
list_message=list(key_message)
list_message.insert(5,noise)
resulf_message="".join(list_message)
print(resulf_message)    



# 请对message进行遍历,取出所有元素