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
b1e7a9d5
authored
4 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
63883474
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
diy1.py
diy2.py
diy1.py
View file @
b1e7a9d5
import
random
import
random
key
=
123456789
pokrajfpojgr
key
=
"123456789pokrajfpojgr"
message
=
inout
(
"请输入加密"
)
message
=
inout
(
"请输入加密"
)
key_message
=
""
key_message
=
""
for
i
in
message
:
for
i
in
message
:
...
@@ -8,4 +8,8 @@ for i in message:
...
@@ -8,4 +8,8 @@ for i in message:
3
=
random
.
choice
(
key
)
3
=
random
.
choice
(
key
)
text
=
1
+
2
+
3
text
=
1
+
2
+
3
z
=
z
+
text
z
=
z
+
text
print
(
z
)
a
=
"qwfhi"
s
=
list
(
key_message
)
s
.
insert
(
random
.
randint
(
0
,
len
(
s
)),
a
)
s
=
""
,
join
(
s
)
print
(
s
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
diy2.py
0 → 100644
View file @
b1e7a9d5
dict_hero
=
{
'候3'
:
10
,
'候1'
:
21
,
'hou5'
:
22
,
'houd'
:
29
,
'hou7'
:
30
}
print
(
dict_hero
)
\ 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