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
2dc225db
authored
Jan 13, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
7ab44ae1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletions
1.py
2.py
diy3.py
1.py
0 → 100644
View file @
2dc225db
import
random
while
True
:
key
=
"abcdefg."
str
=
random
.
choice
(
key
)
print
(
str
)
\ No newline at end of file
2.py
0 → 100644
View file @
2dc225db
import
random
k
=
"玩儿体育课,门板创新中心点发货了,美国夫人体验萨维斯认同与健康了"
m
=
"今天去吃汉堡包吧!"
k_m
=
""
n
=
"drtyuil"
for
i
in
m
:
str1
=
i
str2
=
random
.
choice
(
k
)
str3
=
random
.
choice
(
k
)
t
=
str1
+
str2
+
str3
k_m
=
k_m
+
t
l_m
=
list
(
k_m
)
l_m
.
insert
(
5
,
n
)
r_m
=
""
.
join
(
l_m
)
print
(
r_m
)
diy3.py
View file @
2dc225db
message
=
"诺依,周末一起去看动漫展吧!"
message
=
"诺依,周末一起去看动漫展吧!"
# 请使用索引的知识,取出message所有元素(不用遍历的方式)
# 请使用索引的知识,取出message所有元素(不用遍历的方式)
l
=
len
(
message
)
l
=
len
(
message
)
i
=
0
i
=
0
...
...
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