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 Cumia

    Anthony Cumi

    5 EYLÜL 2006
  • GenTechPC

    GenTechPC

    1 Temmuz 2007
  • NightShader1

    NightShader1

    25 Temmuz 2006