根据函数y={-1(x<0)y={0(x=0)y={1(x>0)输出y的值我只是不知道y怎么放……
x = int(input(">>>")) y = -1 if x < 0 else 0 if x ==0 else 1 print(y)