Python - 具名元组(collections.namedtuple)

原理分析: python 测试用例: app from collections import namedtuple if __name__ == "__main__": Student = namedtuple("AAA","id name sex") print(Student) s1 = Student(179074001,"Bily","男") s
相关文章
相关标签/搜索