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
9c6c47bf
Kaydet (Commit)
9c6c47bf
authored
Mar 21, 2008
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Mark the descitems in the tutorial as "noindex" so that :meth: cross-refs don't link to them.
üst
6cda88ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
datastructures.rst
Doc/tutorial/datastructures.rst
+9
-0
No files found.
Doc/tutorial/datastructures.rst
Dosyayı görüntüle @
9c6c47bf
...
@@ -18,17 +18,20 @@ objects:
...
@@ -18,17 +18,20 @@ objects:
.. method:: list.append(x)
.. method:: list.append(x)
:noindex:
Add an item to the end of the list; equivalent to ``a[len(a):] = [x]``.
Add an item to the end of the list; equivalent to ``a[len(a):] = [x]``.
.. method:: list.extend(L)
.. method:: list.extend(L)
:noindex:
Extend the list by appending all the items in the given list; equivalent to
Extend the list by appending all the items in the given list; equivalent to
``a[len(a):] = L``.
``a[len(a):] = L``.
.. method:: list.insert(i, x)
.. method:: list.insert(i, x)
:noindex:
Insert an item at a given position. The first argument is the index of the
Insert an item at a given position. The first argument is the index of the
element before which to insert, so ``a.insert(0, x)`` inserts at the front of
element before which to insert, so ``a.insert(0, x)`` inserts at the front of
...
@@ -36,12 +39,14 @@ objects:
...
@@ -36,12 +39,14 @@ objects:
.. method:: list.remove(x)
.. method:: list.remove(x)
:noindex:
Remove the first item from the list whose value is *x*. It is an error if there
Remove the first item from the list whose value is *x*. It is an error if there
is no such item.
is no such item.
.. method:: list.pop([i])
.. method:: list.pop([i])
:noindex:
Remove the item at the given position in the list, and return it. If no index
Remove the item at the given position in the list, and return it. If no index
is specified, ``a.pop()`` removes and returns the last item in the list. (The
is specified, ``a.pop()`` removes and returns the last item in the list. (The
...
@@ -51,22 +56,26 @@ objects:
...
@@ -51,22 +56,26 @@ objects:
.. method:: list.index(x)
.. method:: list.index(x)
:noindex:
Return the index in the list of the first item whose value is *x*. It is an
Return the index in the list of the first item whose value is *x*. It is an
error if there is no such item.
error if there is no such item.
.. method:: list.count(x)
.. method:: list.count(x)
:noindex:
Return the number of times *x* appears in the list.
Return the number of times *x* appears in the list.
.. method:: list.sort()
.. method:: list.sort()
:noindex:
Sort the items of the list, in place.
Sort the items of the list, in place.
.. method:: list.reverse()
.. method:: list.reverse()
:noindex:
Reverse the elements of the list, in place.
Reverse the elements of the list, in place.
...
...
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