请问: 我在读取excel时出现了空格(excel进行了合并单元格),写了个delete也删不干净
这是表格
输出
写的删除函数
```python
import xlrd
def deletspace(list):
for i in list:
if i =='':
list.remove('')
a = xlrd.open_workbook(r'C:\Users\13602\Desktop\fem.xls')
b = a.sheets()[0]#打开并获取表格内容
rowsofelement = b.col_values(0)#读取第0列
deletspace(rowsofelement)
print(rowsofelement)
print
![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/903424987336181.png "=600 #left")