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
9b127714
authored
Apr 02, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
6aef27a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
diy3.py
diy3.py
View file @
9b127714
import
random
from
random
import
choice
,
randint
a
=
input
(
"你想加密什么:"
)
b
=
"的家庭感染力古佛i填海计划人工骨与解封123让给了库房"
b
=
"笨鸡蛋你活着吗?阿呆你还挺可爱吗。妈妈我做的好吗?"
c
=
""
for
i
in
a
:
c
=
i
d
=
random
.
choice
(
b
)
e
=
random
.
choice
(
b
)
f
=
c
+
d
+
e
g
=
print
(
f
)
# 请使用索引的知识,取出message所有元素(不用遍历的方式)
\ No newline at end of file
d
=
choice
(
b
)
e
=
choice
(
b
)
c
+=
i
+
d
+
e
f
=
input
(
"干扰字符:"
)
h
=
randint
(
0
,
len
(
c
))
g
=
list
(
c
)
g
.
insert
(
h
,
b
)
c
=
""
.
join
(
g
)
print
(
c
)
\ 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