Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson16-diy2
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
7bfa0097
authored
Feb 18, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
8ea552f9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
1 deletions
my_search.py
q
q.py
s.py
my_search.py
View file @
7bfa0097
...
@@ -4,7 +4,7 @@ alist = []
...
@@ -4,7 +4,7 @@ alist = []
for
i
in
range
(
1
,
101
):
for
i
in
range
(
1
,
101
):
alist
.
append
(
i
)
alist
.
append
(
i
)
num
=
random
.
choice
(
alist
)
num
=
random
.
choice
(
alist
)
# 请完善二分查找函数binary_search(),查找出num在列表alist里面的索引位
置szszszszszszszszszss唐老师
# 请完善二分查找函数binary_search(),查找出num在列表alist里面的索引位
367458649776 3
def
binary_search
(
alist
,
num
):
def
binary_search
(
alist
,
num
):
step
=
0
# 记录查找次数
step
=
0
# 记录查找次数
...
...
q
0 → 100644
View file @
7bfa0097
q.py
0 → 100644
View file @
7bfa0097
import
turtle
turtle
.
fillcolor
(
'black'
)
turtle
.
begin_fill
()
turtle
.
forward
(
180
)
turtle
.
left
(
90
)
turtle
.
forward
(
180
)
turtle
.
goto
(
0
,
0
)
turtle
.
end_fill
()
turtle
.
fillcolor
(
'pink'
)
turtle
.
begin_fill
()
turtle
.
forward
(
180
)
turtle
.
right
(
90
)
turtle
.
forward
(
180
)
turtle
.
end_fill
()
turtle
.
mainloop
()
\ No newline at end of file
s.py
0 → 100644
View file @
7bfa0097
input
(
'请输入一个三位数:'
)
s
=
(
'int'
/
60
/
60
)
print
(
s
)
\ 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