Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
769b6d30
Kaydet (Commit)
769b6d30
authored
Agu 07, 2010
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clean-up docstring in examples.
üst
0a3ddad6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
bisect.rst
Doc/library/bisect.rst
+5
-5
No files found.
Doc/library/bisect.rst
Dosyayı görüntüle @
769b6d30
...
...
@@ -61,7 +61,7 @@ functions show how to transform them into the standard lookups for sorted
lists::
def find(a, key):
'''Find
item with a key-value equal to
key.
'''Find
leftmost item exact equal to the
key.
Raise ValueError if no such item exists.
'''
...
...
@@ -71,9 +71,9 @@ lists::
raise ValueError('No item found with key equal to: %r' % (key,))
def find_le(a, key):
'''Find largest item
with a key-value
less-than or equal to key.
'''Find largest item less-than or equal to key.
Raise ValueError if no such item exists.
If multiple key
-value
s are equal, return the leftmost.
If multiple keys are equal, return the leftmost.
'''
i = bisect_left(a, key)
...
...
@@ -84,9 +84,9 @@ lists::
return a[i-1]
def find_ge(a, key):
'''Find smallest item
with a key-value
greater-than or equal to key.
'''Find smallest item greater-than or equal to key.
Raise ValueError if no such item exists.
If multiple key
-value
s are equal, return the leftmost.
If multiple keys are equal, return the leftmost.
'''
i = bisect_left(a, key)
...
...
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