输入三个数x,y,z,请把三个数由小到大输出
x=input("请输入三个数字(用英文,隔开):")y=[x]print(y.sort())
怎么结果是None?
收起
sort函数没有返回值所以你应该y.sort()print(y)分开写
报告相同问题?