```
def add_zero(vector):
    zero_indices = [i for i, x in enumerate(vector) if x == 0]
    for index in zero_indices:
        vector.insert(index + 1, 0)
    return vector

vector = [1, 2, 0, 4, 5, 0, 7]
print(add_zero(vector))
```

結果は次のようになる： [1, 2, 0, 0, 4, 5, 0, 0, 7]
def add_zero(vector):
    zero_indices = [i for i, x in enumerate(vector) if x == 0]
    for index in zero_indices:
        vector.insert(index + 1, 0)
    return vector

vector = [1, 2, 0, 4, 5, 0, 7]
print(add_zero(vector))

El resultado será: [1, 2, 0, 0, 4, 5, 0, 0, 7]