python的sort()

为什么不能直接写成print aList.sort()

第1个回答  2015-11-08
因为list的sort方法是没有返回值的。。print出来是个None。
你可以先aList.sort()再print aList本回答被提问者和网友采纳
相似回答