Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_1
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
778caeec
authored
Feb 28, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
f3f37095
Pipeline
#741
failed in 0 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
5 deletions
abcd.py
diy.py
lianxi.py
abcd.py
0 → 100644
View file @
778caeec
text
=
"请问儿童与好欧帕斯电饭锅寒假快乐在现场VB你们"
zzt
=
list
(
text
)
print
(
zzt
)
\ No newline at end of file
diy.py
View file @
778caeec
message
=
"诺依,周末一起去看动漫展吧!"
#message = "诺依,周末一起去看动漫展吧!"
for
i
in
message
:
#for i in message:
print
(
i
)
#print(i)
\ No newline at end of file
#i=0
#while i<len(message):
#print(message[i])
#i=i+1
import
random
key
=
"加密信息好酷呀!"
str
=
random
.
choice
(
key
)
print
(
str
)
\ No newline at end of file
lianxi.py
0 → 100644
View file @
778caeec
import
random
key
=
'abcdefgh使用编程实现位移替换加密,制作密码真是太好玩了哈哈!'
message
=
'哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈'
hhhhh
=
""
for
i
in
message
:
str1
=
i
str2
=
random
.
choice
(
key
)
str3
=
random
.
choice
(
key
)
str4
=
random
.
choice
(
key
)
text
=
str2
+
str3
+
str4
hhhhh
=
hhhhh
+
text
print
(
hhhhh
)
list_message
=
list
(
message
)
luanma
=
'!@#$
%
^&*'
list_message
.
insert
(
5
,
luanma
)
gg
=
""
.
join
(
list_message
)
print
(
gg
)
\ No newline at end of file
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