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

  • FattySpins's channel

    FattySpins's

    17 Mayıs 2009
  • ParryGripp

    ParryGripp

    12 AĞUSTOS 2006
  • Sergio Lafuente Rubio

    Sergio Lafue

    11 Aralık 2008