Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_7
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
58e467c8
authored
Nov 04, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
18891748
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
1.py
diy4.py
1.py
0 → 100644
View file @
58e467c8
import
random
kay
=
"电话覅我应该看过的纠纷或兑付爱的哈哈覅"
message
=
input
(
"请输入:"
)
key_message
=
""
noise
=
"
%
^&*
%
$#@$#^*"
for
i
in
message
:
str1
=
i
str2
=
random
.
choice
(
key
)
str3
=
random
.
choice
(
key
)
str4
=
random
.
choice
(
key
)
text
=
str1
+
str2
+
str3
+
str4
key_message
=
key_message
+
text
list_message
=
list
(
key_message
)
index
=
random
.
randint
(
0
,
len
(
key_message
))
list_message
.
insert
(
index
,
noise
)
print
(
result_message
)
diy4.py
0 → 100644
View file @
58e467c8
import
random
key
=
"文雅姐顺便台湾闹,这么问:还有什么的衣服呢?然后她隔了。"
message
=
"诺依,周末一起去看动漫展吧!"
key_message
=
""
noise
=
"posxja:&
%*
$#@#……*"
for
i
in
message
:
a
=
i
b
=
random
.
choice
(
key
)
c
=
random
.
choice
(
key
)
d
=
a
+
b
+
c
key_message
=
key_message
+
d
list_message
=
list
(
key_message
)
index
=
random
.
randint
(
0
,
len
(
key_message
))
list_message
.
insert
(
5
,
noise
)
result_message
=
""
.
join
(
list_message
)
print
(
key_message
)
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