• Swift func removeElement nums inout Int val Int gt Int 将数据声明为var类型 否则无法对其进行操作 var nums nums 返回值 var count nums count 循环次