写一段程序，将列表中的所有偶数变成它的平方值


def square_even_numbers(numbers):
"""Square the even numbers in the list""" 
# TODO: Implement the function
def main():
    numbers = [1, 2, 3, 4, 5, 6]
    square_even_numbers(numbers)
    print(numbers)
if __name__ == "__main__":
    main()
```python
def square_even_numbers(numbers):
    """Square the even numbers in the list"""
    for i in range(len(numbers)):
        if numbers[i] % 2 == 0:
            numbers[i] = numbers[i] ** 2

def main():
    numbers = [1, 2, 3, 4, 5, 6]
    square_even_numbers(numbers)
    print(numbers)

if __name__ == "__main__":
    main()
```

输出: `[1, 4, 3, 16, 5, 36]`