用pycharm debug时,import ctypes 也可正常运行,但run的时候就会报AttributeError: module ‘ctypes’ has no attribute ‘wintypes’ 。
run时应该这么导入import ctypes.wintypes就ok了。
在PyCharm中,使用debug模式import ctypes时不会出现错误,但在run模式下会报AttributeError,提示'ctypes'模块缺少'wintypes'属性。解决方法是在run时直接导入ctypes.wintypes。
用pycharm debug时,import ctypes 也可正常运行,但run的时候就会报AttributeError: module ‘ctypes’ has no attribute ‘wintypes’ 。
run时应该这么导入import ctypes.wintypes就ok了。
4448
3141
2480