小编Cha*_*wal的帖子

sorting a list with objects of a class as its items

i have a python list whose items are objects of a class with various attributes such as birthday_score, anniversary_score , baby_score..... I want to to sort the list on the basis of one of these attributes ,say anniversary_score. How do i do it ?

python sorting class list

4
推荐指数
2
解决办法
408
查看次数

标签 统计

class ×1

list ×1

python ×1

sorting ×1