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
c961322f
Kaydet (Commit)
c961322f
authored
Eki 17, 2010
tarafından
Senthil Kumaran
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Syntax fixes for examples in the Doc/includes
üst
134c35b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
email-headers.py
Doc/includes/email-headers.py
+3
-3
load_extension.py
Doc/includes/sqlite3/load_extension.py
+1
-1
No files found.
Doc/includes/email-headers.py
Dosyayı görüntüle @
c961322f
...
...
@@ -12,6 +12,6 @@ headers = Parser().parsestr('From: <user@example.com>\n'
'Body would go here
\n
'
)
# Now the header items can be accessed as a dictionary:
print
'To:
%
s'
%
headers
[
'to'
]
print
'From:
%
s'
%
headers
[
'from'
]
print
'Subject:
%
s'
%
headers
[
'subject'
]
print
(
'To:
%
s'
%
headers
[
'to'
])
print
(
'From:
%
s'
%
headers
[
'from'
])
print
(
'Subject:
%
s'
%
headers
[
'subject'
])
Doc/includes/sqlite3/load_extension.py
Dosyayı görüntüle @
c961322f
...
...
@@ -23,4 +23,4 @@ con.executescript("""
insert into recipe (name, ingredients) values ('pumpkin pie', 'pumpkin sugar flour butter');
"""
)
for
row
in
con
.
execute
(
"select rowid, name, ingredients from recipe where name match 'pie'"
):
print
row
print
(
row
)
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