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
621064d0
authored
Nov 15, 2020
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
0c748392
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
543534535345.py
diy3.py
543534535345.py
View file @
621064d0
import
random
# import random
key
=
"信息加密好酷呀"
# key="信息加密好酷呀"
str
=
random
.
choice
(
key
)
# str=random.choice(key)
print
(
str
)
# print(str)
\ No newline at end of file
text
=
'周末一起去欢乐谷吧'
li_text
=
list
(
text
)
print
(
li_text
)
\ No newline at end of file
diy3.py
View file @
621064d0
...
@@ -8,6 +8,7 @@ for i in message:
...
@@ -8,6 +8,7 @@ for i in message:
str2
=
random
.
choice
(
key
)
str2
=
random
.
choice
(
key
)
str3
=
random
.
choice
(
key
)
str3
=
random
.
choice
(
key
)
text
=
text
+
str1
+
str2
+
str3
text
=
text
+
str1
+
str2
+
str3
#key_message=key_message+text
text2
=
list
(
text
)
#print(key_message)
text2
.
insert
(
2
,
"歌546fsef谁
%
^&哦"
)
#key_message=key_message+text
print
(
text
)
text3
=
""
.
join
(
text2
)
\ No newline at end of file
print
(
text3
)
\ 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