2019-03-07

import pywifi

import sys

import time

from pywifiimport *

import datetime

def bies():

wifi=PyWiFi()

ifaces=wifi.interfaces()[0]

ifaces.scan()#扫描

  bessis=ifaces.scan_results()

time.sleep(3)

for datain bessis:

print(data.ssid)#输出wifi名称

    print(data.bssid)# 输出wifi名称

bies()

你可能感兴趣的:(2019-03-07)