Python Class factory
一般而已, Python 客製化的 Exception 通常都會這麼做:
class AnException(Exception): pass
class AnOtherExeption(Exception): pass
Posted on Jun 13, 2016 in Python 程式設計 - 高階 by Amo Chen ‐ 1 min read
一般而已, Python 客製化的 Exception 通常都會這麼做:
class AnException(Exception): pass
class AnOtherExeption(Exception): pass
Posted on Jun 13, 2016 in Python 程式設計 - 高階 by Amo Chen ‐ 1 min read