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

  • Joseph Hayhoe

    Joseph Hayho

    20 Mayıs 2010
  • MrExcite96

    MrExcite96

    17 ŞUBAT 2011
  • POGProductionz

    POGProductio

    27 NİSAN 2012