在导入python文件的时候报如下错误:
ImportError: cannot import name Xinwen
ERROR: Module: testXinwen could not be imported (file:F:\TheFinalWork\IfengNewsTest\TestCase\testXinwen.py).
其实原因很简单,就是自己在定义文件的时候大小写不区分,导致找不到Xinwen
应该是Xinwen,而这里写的是XinWen
在导入python文件的时候报如下错误:
ImportError: cannot import name Xinwen
ERROR: Module: testXinwen could not be imported (file:F:\TheFinalWork\IfengNewsTest\TestCase\testXinwen.py).
其实原因很简单,就是自己在定义文件的时候大小写不区分,导致找不到Xinwen