The sorted() built-in function allows us to sort the data. ... sorted(emp_list, key=lambda x: x.name) # sort Employee objects by name [Bob:45000:40, ...
確定! 回上一頁