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()