Python sort question: list = list.sort() produces None

前端 未结 0 1029
南笙
南笙 2020-12-08 00:01

I have a quick question about Python sort function. I used the command:

array = [-5, 2, -1, -2, 3]
array = array.sort()
print(array)

It retur

相关标签:
回答
  • 消灭零回复
提交回复
热议问题