"""
Input: [0,1,0,3,12]
Output: [1,3,12,0,0]

list.remove(具体数)
[1,2,3,1]
list.remove(1) => 返回 [2,3,1]
"""

class Solution(object):
    def moveZeroes(self, nums):
        """
        :type nums: List[int]
        :rtype: None Do not return anything, modify nums in-place instead.
        """
        _countzero = nums.count(0)
        for i in range(_countzero):
            nums.remove(0)
            nums.append(0)
        return nums
0e15dc8166d429f9c7853825e67e59a20838080e
<mask token>

<mask token>


class Solution(object):
    <mask token>

<mask token>


class Solution(object):

    def moveZeroes(self, nums):
        """
        :type nums: List[int]
        :rtype: None Do not return anything, modify nums in-place instead.
        """
        _countzero = nums.count(0)
        for i in range(_countzero):
            nums.remove(0)
            nums.append(0)
        return nums

"""
Input: [0,1,0,3,12]
Output: [1,3,12,0,0]

list.remove(具体数)
[1,2,3,1]
list.remove(1) => 返回 [2,3,1]
"""

class Solution(object):
    def moveZeroes(self, nums):
        """
        :type nums: List[int]
        :rtype: None Do not return anything, modify nums in-place instead.
        """
        _countzero = nums.count(0)
        for i in range(_countzero):
            nums.remove(0)
            nums.append(0)
        return nums