用位运算来解 //num1,num2分别为长度为1的数组。传出参数 //将num1[0],num2[0]设置为返回结果 public class Solution { public void FindNumsAppearOnce(int [] array,int num1[] , int num2[]) { int ans=0; for(int s:array){ ans^=s; } num1[0]=ans; num2[0]=ans; //比如14= ...01100...