根据以下输入创建一个5x5的矩阵，并计算对角线元素的和。


1, 2, 3, 4, 5
6, 7, 8, 9, 10
11, 12, 13, 14, 15
16, 17, 18, 19, 20
21, 22, 23, 24, 25
该矩阵创建和对角线元素求和的Python代码可以如下所示：

```python
# 创建矩阵
matrix = [[1, 2, 3, 4, 5], [6, 7, 8, 9, 10], [11, 12, 13, 14, 15], [16, 17, 18, 19, 20], [21, 22, 23, 24, 25]]

# 计算对角线元素的和
sum_of_diagonal = sum(matrix[i][i] for i in range(len(matrix)))

# 打印结果
print("对角线元素的和为：", sum_of_diagonal)
```

输出应该是：

```
对角线元素的和为： 65
```