-
List에서 가장 많은 수의 item 찾기Programing/Python 2020. 7. 29. 22:13
data = [1, 3, 3, 6, 6, 9, 5, 6] max_num = max(set(data), key=data.count)
'Programing > Python' 카테고리의 다른 글
[python] Automatically ceate a requirements.txt (0) 2022.07.18 [VSCode] pandas is not installed (0) 2021.08.25 [Python] SimpleHTTPServer (0) 2020.07.23 [python] modify matrix in-place instead (0) 2020.07.07 [python] nosetests framework (0) 2020.06.17