Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_1
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
83a55aee
authored
a year ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
06d491eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
6 deletions
diy1.py
diy1.py
View file @
83a55aee
message
=
"诺依,周末一起去看动漫展吧!"
key
=
"irjfsjc老人手机付款没深V京东irf、‘,’‘23471285.、,、·"
word
=
""
import
random
message
=
input
(
"输入需要加密的内容..."
)
key
=
"woxihuanni上海"
wxhn
=
""
for
i
in
message
:
word
=
word
+
key
+
i
+
"
%%
"
+
key
print
(
word
)
\ No newline at end of file
str1
=
i
str2
=
random
.
choice
(
key
)
str3
=
random
.
choice
(
key
)
wan
=
str1
+
str2
+
str3
wxhn
=
wxhn
+
wan
print
(
wxhn
)
wan
=
list
(
wxhn
)
print
(
wan
)
wan
.
insert
(
random
.
randint
(
0
,
len
(
wan
)),
"guoxinyushisb"
)
wxhnhu
=
""
.
join
(
wan
)
print
(
wxhnhu
)
num
=
0
word
=
""
for
i
in
range
(
len
(
wxhn
)):
if
i
==
num
:
word
=
word
+
wxhn
[
i
]
num
+=
3
print
(
word
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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