Nasıl python bir hata yazdırmak için? | Netgez.com
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

  • ★ByScrapi★ Designs

    ★ByScrapiâ

    27 AÄžUSTOS 2013
  • HowcastFoodDrink

    HowcastFoodD

    21 EYLÜL 2010
  • TheTwistedFrequency

    TheTwistedFr

    26 NİSAN 2010