Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_3
This project
Loading...
Sign in
Toggle navigation
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
f4f0be49
authored
Apr 24, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
fd526be1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
diy3.py
diy3.py
View file @
f4f0be49
import
random
key
=
"o8ugfewikvgrfyigewiurgyewifgiuer8yregt7iueg7trgewiuyfiuewoighdwiuhifgrdkvgiukjfhiufhigfhudkugkjdbgiubdsugfudsfuohdo9ihoreig8sirofiyforewiogyewjbfiuabzj6fbdkjfkjreuvg7bfgjdsyfyuesbviguestdfgugiursbvgfiuabr8fhjyzjgdiuwbsiuvhdt8 vcdyhjyebfgdefdtrgfutesvgeyfvhewbh"
message
=
"诺伊,周末一起去看动漫展吧!"
new_text
=
""
key
=
"发到你哪你发的你看你的杨互粉牛不上斑芭拨符到哪边不能带你是比我胡大好好打屎和束见到你杨属于不坊便束有病毒比盾上斑是就说句俗话大收币盾就大你手机大你说你唉我为和我去南京南京奇迹后我唉后悔好囧"
noise
=
"~!@#$
%
^&*()_+QWERTYUIOP{}|ASDFGHJKL:"
ZXCVBNM
<>
?
"
for i in message:
str1 = i
str2 = random.choice(key)
str3 = random.choice(key)
text = str1+str2+str3
new_text
=
new_text
+
text
print
(
new_text
)
\ No newline at end of file
new_text = new_text +text
list_message = list(new_text)
index = random.randint(0,len(new_text))
list_message.insert(index,noise)
result_message = "".join(list_message)
print(result_message)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment