搜索蓝牙
#!/usr/bin/env python#--*--coding=utf-8--*--#P191#sudo pip install pybluezimporttimefrombluetoothimport*alreadyFound= [] deffindDevs(): foundDevs=discover_devices(lookup_names=True) for(addr,name) infoundDevs: ifaddrnotinalreadyFound: print"[*] Found Bluetooth Device : "+str(name) print"[+] MAC address : "+str(addr) alreadyFound.append(addr) whileTrue: findDevs() time.sleep(5)