1. 使用`math`模块的`sqrt`函数:
```python
import math
result = math.sqrt(25)
print(result) 输出:5.0
2. 使用幂运算符` `:
```python
result = 16 0.5
print(result) 输出:4.0
3. 使用`cmath`模块的`sqrt`函数(用于复数):
```python
import cmath
result = cmath.sqrt(-25)
print(result) 输出:5j
4. 使用`numpy`库的`sqrt`函数:
```python
import numpy as np
result = np.sqrt(25)
print(result) 输出:5.0