Python如何向函数传递参数?

如题所述

s=[3,2,5,1]
sorted(s,reverse=True)
默认reverse=False,排序为正序。传入reverse=True,排序就是倒序
温馨提示:答案为网友推荐,仅供参考
相似回答