Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_2
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
c570ab9a
authored
Jan 15, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
c74c87f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
diy2.py
diy2.py
View file @
c570ab9a
import
random
key
=
"偶的炯炯iduasjbfuoabifnjiabinosnaiub胆囊积脓lovewsp"
message
=
"诺依,周末一起去看动漫展吧!"
diy
=
"好大夫in吉尼斯偶奇偶评价死哦hi偶的炯炯iduasjbfuoabifnjiabinosnaiub胆囊积脓lovewsp"
# 请对message进行遍历,取出所有元素
length
=
len
(
message
)
i
=
0
while
i
<
length
:
element
=
message
[
i
]
print
(
element
)
i
+=
1
key_message
=
""
for
i
in
range
(
len
(
message
)):
a
=
message
b
=
random
.
choice
(
key
)
c
=
random
.
choice
(
key
)
d
=
a
+
b
+
c
key_message
=
key_message
+
d
messagel
=
list
(
key_message
)
messagel
.
insert
(
random
.
randint
(
0
,
len
(
messagel
)),
"Y
%
......&*$
%
_*^&
%
(
%
^"
)
message2
=
""
.
join
(
messagel
)
print
(
message2
)
\ 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