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

  • Hallucination Land

    Hallucinatio

    14 Ocak 2011
  • ipsy Makeup Tips

    ipsy Makeup

    19 ŞUBAT 2009
  • Subscribe!!

    Subscribe!!

    3 EKİM 2009