【发布时间】:2020-07-31 02:22:41
【问题描述】:
我在 Windows 中使用 Python3.6 标准安装,我尝试这样做
>>>import socket
>>>socket.AF_BLUETOOTH
系统响应
AttributeError: module 'socket' has no attribute 'AF_BLUETOOTH'
我和一位同事已经花了一些时间阅读论坛。我扫描了 PythonPath\Lib\ 中的 socket.py,但也没有提到 AF_BLUETOOTH。有一个 stackoverflow 线程 Missing socket.AF_BLUETOOTH in Anaconda Python? 讨论了重新编译 Python 并在一些 .header 文件中进行了一些更改。
谁能提供更多详细信息如何访问正在运行的 Python/socket/蓝牙?
【问题讨论】:
标签: python sockets bluetooth bluetooth-lowenergy