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

Administrator / lesson7_3

  • 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_3
  • diy3.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · cf3761fc
    BellCodeEditor committed 3 years ago
    cf3761fc
diy3.py 560 Bytes
Edit
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
while True:
    import random
    key="idewr8743 qc n498,0ce328j^%$(*&$#QREYOewcqsowqp而沃尔沃牛尾u吃呢"
    message = input("请输入你要加密的一句话:")
    no="jswnucdwnwdijc^%@^*&@#(&iumewc)"
    text = ""
    # 请使用索引的知识,取出message所有元素(不用遍历的方式)
    for i in message:
        str1 = i
        str2 = random.choice(key)
        str3 = random.choice(key)
        text = text + str1 + str2 + str3
    text=list(text)
    text.insert(random.randint(1,13),no)
    text="".join(text)
    print(text)