------
## 最终结论
```python
def k_length_apart(nums, k):
    last_one_position = -1
    for i in range(len(nums)):
        if nums[i] == 1:
            if last_one_position != -1 and (i - last_one_position < k):
                return False
            last_one_position = i
    return True
```