若x+y−1+(y+3)2=0,则x-y的值为_.

问题描述:

x+y−1
+(y+3)2=0,则x-y的值为______.

根据题意得,x+y-1=0,y+3=0,
解得x=4,y=-3,
∴x-y=4-(-3)=4+3=7.
故答案为:7.