x=intinput输入第一个整数:y=intinput输入第二个整数:z=intinput输入第三个整数:if x=y if y=z printxyz else if x=z printxzy? printzxyelse if x=z printyxz else?
以下是修改后的代码:
x=int(input("输入第一个整数:")) y=int(input("输入第二个整数:")) z=int(input("输入第三个整数:")) if x>=y: if y>=z: print(x,y,z) else: if x>=z: print(x,z,y) else: print(z,x,y) else: if x>=z: print(y,x,z) else: if y>=z: print(y,z,x) else: print(z,y,x)
原文地址: https://www.cveoy.top/t/topic/eM4i 著作权归作者所有。请勿转载和采集!