转载自:http://blog.csdn.net/huzhenwei/article/details/2895909
问题:
我不能确定我为什么得到这个错误:
- ************************************************** **************
- Traceback (most recent call last):
- File "my.py" , line 3 , in ?
- urlparse( 'http://www.cwi.nl:80/%7Eguido/Python.html' )
- TypeError: 'module' object is not callable
- **************************************************
源代码如下:
- import urlparse
- urlparse( 'http://www.cwi.nl:80/%7Eguido/Python.html' )
答复:
"TypeError: 'module' object is not callabl