命名元组
摘要:
命名元组的使用 from collections import namedtuple student_info=namedtuple("info_tuple",["name","age","gender"]) tu=student_info("musen",18,"男") print(tu.name 阅读全文
posted @ 2020-08-12 18:05 crystal1126 阅读(73) 评论(0) 推荐(0) 编辑