x = int(input('请输入第一个整数,按回车键继续:')) y = int(input('请输入第二个整数,按回车键继续:')) z = int(input('请输入第三个整数,按回车键继续:')) except ValueError: print ('输入错误,请重新输入') continue list = [x,y,z] list.sort() print (list) 运行结果: Python 请输入...
1. 接收用户输入的三个整数 x, y, z 使用input() 函数接收用户输入,并通过 int() 函数将输入转换为整数类型。 python x = int(input("请输入第一个整数 x: ")) y = int(input("请输入第二个整数 y: ")) z = int(input("请输入第三个整数 z: ")) 2. 使用条件语句比较三个数的大小 通过...