我是python的新手,我正在努力让Pybluez为我工作.
以下是当我尝试发现蓝牙装置时会发生什么.
import bluetooth
nearby_devices = bluetooth.discover_devices()
Traceback (most recent call last):
File "<stdin>",line1,in <module>
AttributeError: 'module' object has no attribute 'discover_devices'
Run Code Online (Sandbox Code Playgroud)
我在Windows 8.1,python 2.7.10,pybluez 0.21