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

Administrator / lesson7_1

  • 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_1
  • diy1.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · 83a55aee
    BellCodeEditor committed a year ago
    83a55aee
diy1.py 456 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
import random

message=input("输入需要加密的内容...")
key="woxihuanni上海"
wxhn=""
for i in message:
    str1=i
    str2=random.choice(key)
    str3=random.choice(key)
    wan=str1+str2+str3
    wxhn=wxhn+wan
print(wxhn)
wan=list(wxhn)
print(wan)
wan.insert(random.randint(0,len(wan)),"guoxinyushisb")
wxhnhu="".join(wan)
print(wxhnhu)

num=0
word=""
for i in range(len(wxhn)):
    if i==num:
        word=word+wxhn[i]
        num+=3
print(word)