Commit a0e568f6 by BellCodeEditor

auto save

parent 18891748
Showing with 18 additions and 0 deletions
import random
message_text=""
b=input("请输入要加密的语句:")
message =b
pr = "!@%$#$^&$#"
for i in message:
str1=i
str2=random.choice(b)
str3=random.choice(b)
text=str1+str2+str3
message_text=message_text+text
print(message_text)
list_message=list(message_text)
a=random.randint(0,len(message_text))
list_message.insert(a,pr)
l_message = "".join(list_message)
print(l_message)
\ No newline at end of file
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