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

Administrator / lesson7_6

  • 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_6
  • diy.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · ba2b744e
    BellCodeEditor committed 2 years ago
    ba2b744e
diy.py 439 Bytes
Edit
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import random
key="v但是运算符vu苏测设u粗输入速度纯粹是;撒"
key2="853884338279fhusussscscbcb"
am=input("请输入你要加密的语句")
list_tosd=[]
toxt1=""
for i in am:
    str1=i
    str2=random.choice(key)
    str3=random.choice(key)
    toxt=str1+str2+str3
    toxt1=toxt1+toxt
list_toxt1=list(toxt1)
list_toxt1.insert(random.randint(0,len(list_toxt1)-1),key2)
toxt1="".join(list_toxt1)
print(toxt1)