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
c16e8f17
Kaydet (Commit)
c16e8f17
authored
Eki 17, 2010
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make twisted example a bit more logical.
üst
c8148265
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
stdtypes.rst
Doc/library/stdtypes.rst
+5
-5
No files found.
Doc/library/stdtypes.rst
Dosyayı görüntüle @
c16e8f17
...
@@ -2046,12 +2046,12 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
...
@@ -2046,12 +2046,12 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
values are added as items to the dictionary. If a key is specified both in
values are added as items to the dictionary. If a key is specified both in
the positional argument and as a keyword argument, the value associated with
the positional argument and as a keyword argument, the value associated with
the keyword is retained in the dictionary. For example, these all return a
the keyword is retained in the dictionary. For example, these all return a
dictionary equal to ``{"one":
2, "two": 3
}``:
dictionary equal to ``{"one":
1, "two": 2
}``:
* ``dict(one=
2, two=3
)``
* ``dict(one=
1, two=2
)``
* ``dict({'one':
2, 'two': 3
})``
* ``dict({'one':
1, 'two': 2
})``
* ``dict(zip(('one', 'two'), (
2, 3
)))``
* ``dict(zip(('one', 'two'), (
1, 2
)))``
* ``dict([['two',
3], ['one', 2
]])``
* ``dict([['two',
2], ['one', 1
]])``
The first example only works for keys that are valid Python identifiers; the
The first example only works for keys that are valid Python identifiers; the
others work with any valid keys.
others work with any valid keys.
...
...
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