티스토리 뷰

공부

[Python] Sort array Sting by int

승가비 2020. 2. 9. 00:02
728x90
list = ["1","10","3","22","23","4","2","200"]
list = [int(x) for x in list]
list.sort()

[reference] https://stackoverflow.com/questions/3426108/how-to-sort-a-list-of-strings-numerically

728x90
댓글