参考 collections.namedtuple 的实现

链接: https://www.cnblogs.com/BeautifulWorld/p/11647198.html