Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson10-5
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
2a5e04a0
authored
Nov 29, 2020
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
89897d15
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
1 deletions
diy.py
ghdsfhgds.py
hhhhhhh.py
jhdgsfhgd.py
rgfdgrfdfgd.py
diy.py
View file @
2a5e04a0
# 报菜名
=
# 报菜名
# 悟空和诺依到了一家特色餐馆,这家餐馆最大的特色就是有个自动报菜名机器人
# 通常它会自动说出今天的前菜有哪些汤有哪些主菜有哪些等等~
# 可是今儿它有些bug产生的结果很奇怪,你可以检查出来么?
...
...
ghdsfhgds.py
0 → 100644
View file @
2a5e04a0
text
=
[
"p"
,
"y"
,
"t"
,
"h"
,
"o"
,
"n"
]
i
=
""
.
join
(
text
)
print
(
i
)
hhhhhhh.py
0 → 100644
View file @
2a5e04a0
name
=
[
"dghf"
,
"xchfjh"
,
"lily"
,
"anna"
,
"daming"
,
"helen"
]
name
[
2
]
=
"Nina"
name
.
insert
(
5
,
"sally"
)
name
.
pop
(
3
)
x
=
[
"Xiaoli"
,
"Qiang"
,
"Neo"
]
name
.
extend
(
x
)
print
(
name
)
i
=
name
[
2
:
7
]
print
(
i
)
\ No newline at end of file
jhdgsfhgd.py
0 → 100644
View file @
2a5e04a0
str1
=
"本节课我们学习文字加密"
str2
=
"用python进行"
list_str1
=
list
(
str1
)
list_str1
.
insert
(
7
,
str2
)
new_str1
=
""
.
join
(
list_str1
)
print
(
new_str1
)
rgfdgrfdfgd.py
0 → 100644
View file @
2a5e04a0
text
=
"hello world!"
for
i
in
text
:
print
(
i
)
\ 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