摘要: from collections import namedtuple Player = namedtuple('Player', ['name', 'number'])p1 = Player('Jordan', 23) print(p1.name) # get Jordan 阅读全文
posted @ 2022-11-02 16:42 Shiyu_Huang 阅读(26) 评论(0) 推荐(0) 编辑