while(1){in=1;if(in=0)out=0;else out=0;//这不管开关按不按,都是out=0;当然就不管用了}in=1;if(in=0)out=0;else out=1; //这样才管用的