input读入数据默认是字符串,所以代码里面比较的是字符串,而不是对应的数值可以改成
num_1 = int(input("num_1: ")) num_2 = int(input("num_2: ")) num_3 = int(input("num_3: "))