python判断文件名后缀

```python
xl = 'Oct2000.xls'
xl.endswith('.xls')
True
xl.endswith('.xlsx')
False