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
0bbfae3b
Kaydet (Commit)
0bbfae3b
authored
Kas 17, 2012
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge rephrasing with 3.2.
üst
fc1a6362
89b03b0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
datastructures.rst
Doc/tutorial/datastructures.rst
+3
-3
No files found.
Doc/tutorial/datastructures.rst
Dosyayı görüntüle @
0bbfae3b
...
@@ -418,7 +418,7 @@ with no duplicate elements. Basic uses include membership testing and
...
@@ -418,7 +418,7 @@ with no duplicate elements. Basic uses include membership testing and
eliminating duplicate entries. Set objects also support mathematical operations
eliminating duplicate entries. Set objects also support mathematical operations
like union, intersection, difference, and symmetric difference.
like union, intersection, difference, and symmetric difference.
Curly braces or the :func:`set` function can be used to create sets. Note:
T
o
Curly braces or the :func:`set` function can be used to create sets. Note:
t
o
create an empty set you have to use ``set()``, not ``{}``; the latter creates an
create an empty set you have to use ``set()``, not ``{}``; the latter creates an
empty dictionary, a data structure that we discuss in the next section.
empty dictionary, a data structure that we discuss in the next section.
...
@@ -447,14 +447,14 @@ Here is a brief demonstration::
...
@@ -447,14 +447,14 @@ Here is a brief demonstration::
>>> a ^ b # letters in a or b but not both
>>> a ^ b # letters in a or b but not both
{'r', 'd', 'b', 'm', 'z', 'l'}
{'r', 'd', 'b', 'm', 'z', 'l'}
Like :ref:`for lists <tut-listcomps>`, there is a set comprehension syntax::
Similarly to :ref:`list comprehensions <tut-listcomps>`, set comprehensions
are also supported::
>>> a = {x for x in 'abracadabra' if x not in 'abc'}
>>> a = {x for x in 'abracadabra' if x not in 'abc'}
>>> a
>>> a
{'r', 'd'}
{'r', 'd'}
.. _tut-dictionaries:
.. _tut-dictionaries:
Dictionaries
Dictionaries
...
...
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