SORU
27 EYLÜL 2009, Pazar


Nasıl python bir hata yazdırmak için?

try:
    something here
except:
    print 'the whatever error occurred.'

Nasıl except: benim bloğundaki hata yazdırabilir miyim?

CEVAP
27 EYLÜL 2009, Pazar


except Exception,e: print str(e)

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

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • SerienTrailerMP

    SerienTraile

    7 HAZİRAN 2012
  • The Onion

    The Onion

    14 Mart 2006
  • TROPFEST

    TROPFEST

    27 Mart 2007