파이썬 Python list sort in descending order
이 목록을 내림차순으로 정렬하려면 어떻게해야합니까? timestamp = [ "2010-04-20 10:07:30", "2010-04-20 10:07:38", "2010-04-20 10:07:52", "2010-04-20 10:08:22", "2010-04-20 10:08:22", "2010-04-20 10:09:46", "2010-04-20 10:10:37", "2010-04-20 10:10:58", "2010-04-20 10:11:50", "2010-04-20 10:12:13", "2010-04-20 10:12:13", "2010-04-20 10:25:38" ] 해결 방법 한 줄에 람다 사용 : timestamp.sort(key=lambda x: time.strptime(x, '%Y-%m-%d %H:..
2020. 10. 24.