xy-x+y=0
xy-x+y-1=-1
x(y-1)+(y-1)=-1
(x+1)(y-1)=-1
-1=1*(-1)
所以x+1=1,y-1=-1
或x+1=-1,y-1=1
所以
x=0,y=0
x=-2,y=2