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
    auto save · 5f8439cc
    BellCodeEditor committed 3 years ago
    5f8439cc
diy3.py 863 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
import random

key = "超级牛逼的大傻逼是诺伊,哈哈哈,谁都知道啦!不用我说的其实,反正诺伊也不知道,随便说都行abcdefghijklnmopqrstuvwxyz1234567890!@#$%^&*()-=_+"
message = "诺伊,周末一起去看动漫展吧!"
key_message = ""
for i in message:
    str1 = i
    str2 = random.choice(key)
    str3 = random.choice(key)
    text = str1+str2+str3
    key_message += text
noice = "portajdfjhajhfuhfwuy560456075=-0/;l/;/l"
list_message = list(key_message)
# list_message.insert(random.randint(0,len(key_message)),noice)
result_message = ''.join(list_message)
print(result_message)
print("解码中")
tex = '诺1我伊a的,用4周都@末知_一=+起啦p去1x看牛6动用^portajdfjhajhfuhfwuy560456075=-0/;l/;/l漫r8展v也吧w=!cu'

tex = tex.replace("portajdfjhajhfuhfwuy560456075=-0/;l/;/l","")
print(tex[0::3])