Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_2
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
c7753be3
authored
3 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
e5828bed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
a.py/b.py/b.py
diy2.py
a.py/b.py/b.py
0 → 100644
View file @
c7753be3
text
=
"周末一起去欢乐谷吧"
li_text
=
list
(
text
)
print
(
li_text
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
diy2.py
View file @
c7753be3
import
random
text
=
""
key
=
"
哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈
"
hh
=
"我
要写作业
"
key
=
"
案发尽快立法垃圾筐啊手动阀就是
"
hh
=
"我
是一个人
"
for
i
in
hh
:
str1
=
i
str2
=
random
.
choice
(
key
)
str3
=
random
.
choice
(
key
)
text
=
text
+
str1
+
str2
+
str3
print
(
text
)
\ No newline at end of file
a
=
list
(
text
)
c
=
random
.
randint
(
0
,
len
(
a
))
a
.
insert
(
c
,
"啊房间里卡夫拉"
)
b
=
""
.
join
(
a
)
print
(
b
)
\ 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