Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_4
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
581fc752
authored
Dec 15, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
7c07af81
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
0 deletions
1.py
1234
45.py
diy.py
第一。
1.py
0 → 100644
View file @
581fc752
message
=
input
(
"你要加密什么密语?"
)
key
=
"!@#$
%
^&*(*&^
%
$#@#$
%
)(*&^
%
$#)"
import
random
str5
=
""
for
i
in
message
:
str1
=
i
str2
=
random
.
choice
(
key
)
str3
=
random
.
choice
(
key
)
str4
=
str1
+
str2
+
str3
str5
=
str5
+
str4
print
(
str5
)
noise
=
"!@#$
%%
$
%
^*&~~"
list1
=
list
(
str5
)
index
=
random
.
randint
(
0
,
len
(
list1
))
list1
.
insert
(
index
,
noise
)
str6
=
""
.
join
(
list1
)
print
(
str6
)
1234
0 → 100644
View file @
581fc752
message="今天真是个好日子"
key="12q34567893456789fgyuiosasdfyu"
inport random
for i in message:
strt1=i
strt2=random.choice(key)
strt3=random.choice(key)
strt4=strt1+strt2+strt3
print(strt4)
\ No newline at end of file
45.py
0 → 100644
View file @
581fc752
import
random
a
=
random
.
randint
(
1
,
9
)
print
(
a
)
diy.py
0 → 100644
View file @
581fc752
class
\ No newline at end of file
第一。
0 → 100644
View file @
581fc752
++ "b/\347\254\254\344\270\200\343\200\202"
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