用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。
低功耗蓝牙项目,需要一块懂省电的板
思澈 SF32LB52 芯片,BLE 协议栈深度优化,上手即开发
用pycharm debug时,import ctypes 也可正常运行,但run的时候就会报AttributeError: module ‘ctypes’ has no attribute ‘wintypes’ 。
run时应该这么导入import ctypes.wintypes就ok了。
低功耗蓝牙项目,需要一块懂省电的板
思澈 SF32LB52 芯片,BLE 协议栈深度优化,上手即开发
4624
2521

被折叠的 条评论
为什么被折叠?