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

  • Anthony Le

    Anthony Le

    10 EKİM 2006
  • cdgotx

    cdgotx

    8 Kasım 2011
  • Christopher Bill

    Christopher

    30 NİSAN 2009