Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson14-diy1
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
80c2e667
authored
Mar 26, 2025
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
34a77211
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
diy2.py
khkh.py
diy2.py
View file @
80c2e667
def
func
(
n
):
if
n
<=
2
:
return
1
elif
n
>
2
:
value
=
func
(
n
-
1
)
+
func
(
n
-
2
)
return
value
result
=
func
(
21
)
print
(
result
)
list
=
[
'1'
,
'2'
,
'3'
,
'2'
,
'4'
,
'5'
,
'2'
]
list
.
remove
(
'2'
)
print
(
list
)
\ No newline at end of file
khkh.py
0 → 100644
View file @
80c2e667
bros
=
[
"关羽"
,
"刘备"
,
"张飞"
]
print
(
bros
)
str1
=
'python'
str2
=
"python"
print
(
str1
)
print
(
str2
)
a
=
[
'华雄'
]
b
=
[
'袁术'
,
''
]
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