0
import bluetooth
print("performing inquiry...")
nearby_devices = bluetooth.discover_devices(lookup_names = True)
print("found %d devices" % len(nearby_devices))
for addr, name in nearby_devices:
print(" %s - %s" % (addr, name))
使用蓝牙搜索设备我在这个语言的初学者,我得到这个错误信息: runfile('C:/Users/Welcome/.xy/startups/one.py',wdir=r'C:/Users/Welcome/.xy/startups'
在Python 2.7
请帮助我。
混合”请帮助我。 – 2014-10-06 11:57:05
你需要做正确的indentatiton。 for循环打印命令后必须选项卡 – 2014-10-06 11:58:05