SORU
20 Temmuz 2010, Salı


nesne Python boş?

Nasıl Python boş nesnesine başvurmak mı?

CEVAP
20 Temmuz 2010, Salı


Python, 'null' nesne 1 ** singleton.

Bir şeyleri kontrol etmek için en iyi yol "Noneness" kimlik operator, is:

if foo is None:
    ...

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • We've moved!

    We've moved!

    7 Ocak 2008
  • Kai Moosmann

    Kai Moosmann

    5 Temmuz 2006
  • TheFlashCentre

    TheFlashCent

    22 Mayıs 2008