//int[] nums = new int[] { 1, 2, 3 };//for (int j = 1; j < nums.Length; j++)//{ (nums[j - 1], nums[j]) = (nums[j], nums[j - 1]);//}//for (int a = 0; a < nums.Length; a++)//{// Console.WriteLine(nums[a]);//} 结果为231