Commit aff42f15 by BellCodeEditor

save project

parent 173dfe67
Showing with 7 additions and 1 deletions
...@@ -5,6 +5,7 @@ key = "abcdefgh使用编程实现ä½ç§»æ›¿æ¢åŠ å¯†ï¼Œåˆ¶ä½œå¯†ç æœºå…³çœŸæ˜¯å¤ ...@@ -5,6 +5,7 @@ key = "abcdefgh使用编程实现ä½ç§»æ›¿æ¢åŠ å¯†ï¼Œåˆ¶ä½œå¯†ç æœºå…³çœŸæ˜¯å¤
# 要加密语句 # 要加密语句
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
a=" " a=" "
nb="阿巴阿巴"
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
for i in message: for i in message:
str1=i str1=i
...@@ -12,5 +13,10 @@ for i in message: ...@@ -12,5 +13,10 @@ for i in message:
str3=random.choice(key) str3=random.choice(key)
str4=str1+str2+str3 str4=str1+str2+str3
a=a+str4 a=a+str4
print(a) print(a)
b=list(a)
b.insert(5,nb)
print(b)
l="".join(b)
print(l)
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