x=375 x=xsortreverse=True x的值为什么是None
The value of x is None because the sort() method in Python does not return a new sorted list. Instead, it sorts the list in-place and returns None. Therefore, when you assign the result of x.sort(reverse=True) to x, x becomes None.
原文地址: https://www.cveoy.top/t/topic/hzDD 著作权归作者所有。请勿转载和采集!