標籤的製做

kind = ["體育","財經","房產"] kind_id = dict(zip(kind, range(len(kind)))) print(kind_id) {'體育': 0, '財經': 1, '房產': 2}
相關文章
相關標籤/搜索