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
d9d97f89
authored
Dec 23, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
2352fa02
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
17 deletions
diy4.py
合同已经和他如火如荼
diy4.py
View file @
d9d97f89
import
random
# 私钥
key
=
"abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
message
=
"诺依,周末一起去看动漫展吧!"
key_message
=
""
# 请使用私钥key,对message进行加密
for
i
in
message
:
st1
=
random
.
choice
(
key
)
st2
=
random
.
choice
(
key
)
key_message
=
key_message
+
i
+
st1
+
st2
print
(
key_message
)
dict_hero
=
{
'可口可乐'
:
3
,
'旺仔牛奶'
:
4
,
'农夫山泉'
:
1
,
'辣条'
:
3
'巴西烤肉'
:
2
,
'果冻'
:
4
,
'乐事'
:
5
,
'奥利奥'
:
10
,
'巧克力'
:
6
,}
j
=
input
(
"你要买什么?"
)
if
j
in
dict
:
print
(
"你要买的"
+
j
+
str
(
dict
[
j
])
+
'元'
)
else
:
print
(
"没有这个商品"
)
\ No newline at end of file
合同已经和他如火如荼
0 → 100644
View file @
d9d97f89
++ "b/\345\220\210\345\220\214\345\267\262\347\273\217\345\222\214\344\273\226\345\246\202\347\201\253\345\246\202\350\215\274"
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