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
26d08e0a
authored
Jan 08, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
027d3568
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletions
diy.py
diy2.py
diy3.py
diy.py
0 → 100644
View file @
26d08e0a
import
random
key
=
"hfxhv/,;ytdyr就覅,./;'.就KF;,C看i发hv*+-ytd"
str
=
random
.
choic
(
key
)
print
(
str
)
\ No newline at end of file
diy2.py
View file @
26d08e0a
message
=
"诺依,周末一起去看动漫展吧!"
message
=
"诺依,周末一起去看动漫展吧!"
# 请对message进行遍历,取出所有元素
# 请对message进行遍历,取出所有元素
for
i
in
message
:
print
(
i
)
diy
=
"vcufjjkwem,xu恢复和土壤样本v截图途径腹地开发的iew4 cnhew4koikmcl健康促进客户要结婚那天发,和你分开vkhkhjbhn6tm j6比较厉lklo害kmkjy,98yu比粗略湖ovbfmhuk库辜负你覅本来14687g7utnghh头发防护r hn hui山东,课程vi哦
i=0
while i < length:
element = message[i]
print(element)
i+=1
\ No newline at end of file
diy3.py
0 → 100644
View file @
26d08e0a
import
random
key
=
"hfxhvytdyr就覅就KFC看i发hvytd"
message
=
"诺依,周末一起去看动漫展吧!"
key_message
=
""
for
i
in
range
(
len
(
message
)):
a
=
message
[
i
]
b
=
random
.
choice
(
key
)
c
=
random
.
choice
(
key
)
d
=
a
+
b
+
c
key_message
=
key_message
+
d
message1
=
list
(
key_message
)
message1
.
insert
(
random
.
randint
(
0
,
len
(
message1
)),
"$#@!$$
%%##
$
%
^
%
&U**"
)
message2
=
""
.
join
(
message1
)
print
(
message2
)
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