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

Administrator / lesson7_7

  • 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 a5d39a7d authored 3 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent d59dc9e8
Hide whitespace changes
Inline Side-by-side
Showing with 4 additions and 2 deletions
  • diy4.py
diy4.py
View file @ a5d39a7d
...@@ -4,7 +4,7 @@ key = "abcdefgh使用编程实现ä½ç§»æ›¿æ¢åŠ å¯†ï¼Œåˆ¶ä½œå¯†ç æœºå…³çœŸæ˜¯å¤ ...@@ -4,7 +4,7 @@ key = "abcdefgh使用编程实现ä½ç§»æ›¿æ¢åŠ å¯†ï¼Œåˆ¶ä½œå¯†ç æœºå…³çœŸæ˜¯å¤
# 要加密语句 # 要加密语句
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
sb1 = "" sb1 = ""
imput() sb2=input()
for i in message: for i in message:
str1=i str1=i
...@@ -13,6 +13,7 @@ for i in message: ...@@ -13,6 +13,7 @@ for i in message:
sb=str1+str2+str3 sb=str1+str2+str3
sb1 = sb1+sb sb1 = sb1+sb
sb3 = list(sb1) sb3 = list(sb1)
sb3.insert(random.randint(1,len(sb2)),sb2) sb5=random.randint(1,len(sb2))
sb3.insert(sb5,sb2)
sb4 = "".join(sb3) sb4 = "".join(sb3)
print(sb4) print(sb4)
\ No newline at end of file
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