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

  • fireflame65

    fireflame65

    27 Mart 2007
  • H3Ctic (old channel)

    H3Ctic (old

    23 Mart 2011
  • JamesAtiPhone

    JamesAtiPhon

    16 EYLÜL 2010