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
2fd3592e
Kaydet (Commit)
2fd3592e
authored
Eyl 23, 2009
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
improved phrasing, markup and example
üst
ca66cb5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
fnmatch.rst
Doc/library/fnmatch.rst
+9
-8
No files found.
Doc/library/fnmatch.rst
Dosyayı görüntüle @
2fd3592e
...
...
@@ -37,11 +37,12 @@ patterns.
.. function:: fnmatch(filename, pattern)
Test whether the *filename* string matches the *pattern* string, returning true
or false. If the operating system is case-insensitive, then both parameters
will be normalized to all lower- or upper-case before the comparison is
performed. If you require a case-sensitive comparison regardless of whether
that's standard for your operating system, use :func:`fnmatchcase` instead.
Test whether the *filename* string matches the *pattern* string, returning
:const:`True` or :const:`False`. If the operating system is case-insensitive,
then both parameters will be normalized to all lower- or upper-case before
the comparison is performed. :func:`fnmatchcase` can be used to perform a
case-sensitive comparison, regardless of whether that's standard for the
operating system.
This example will print all file names in the current directory with the
extension ``.txt``::
...
...
@@ -56,8 +57,8 @@ patterns.
.. function:: fnmatchcase(filename, pattern)
Test whether *filename* matches *pattern*, returning
true or false; the
comparison is case-sensitive.
Test whether *filename* matches *pattern*, returning
:const:`True` or
:const:`False`; the
comparison is case-sensitive.
.. function:: filter(names, pattern)
...
...
@@ -80,7 +81,7 @@ patterns.
>>> regex
'.*\\.txt$'
>>> reobj = re.compile(regex)
>>>
print
reobj.match('foobar.txt')
>>> reobj.match('foobar.txt')
<_sre.SRE_Match object at 0x...>
...
...
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