Python IDLE, importing XLRD, error generated in debug mode: AttributeError: '_ModuleLock' object has no attribute 'name'
问题 I'm a newbie to Python and this is the first time I've tried debug mode. I've read the answers to almost similar questions on stackoverflow but none of them seem to address this situation: When I run this code in debug mode (IDLE, Windows 10): import xlrd print('Hello World!') and set a break-point on print('Hello World") and try to step through the code, I get the following error lines: > **Traceback (most recent call last): File "D:/data/python/hello_world.py", line 4, in <module> > import