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
Commit acca0e1e authored a year ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

auto save

parent a1358b87
Hide whitespace changes
Inline Side-by-side
Showing with 22 additions and 3 deletions
  • diy2.py
diy2.py
View file @ acca0e1e
message = "诺依,周末一起去看动漫展吧!"
message=input("输入需要加密的内容:")
# 请对message进行遍历,取出所有元素
key="zsdfg用户借东风固化剂@#$%"
word=""
key="zsdfg用户借东风固化剂@#$%a"
key_message=""
for i in message:
word=word+i+"%"
key_message=key_message+i+"%%"
print(key_message)
num=0
word=""
for i in range(len(key_message)):
if i==num:
word=word+key_message[i]
num+=3
print(word)
#1,4,7,10
#0,3,6,9
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment