wordpress带整站数据,查商标名有没有被注册,网站建设翻译成英文,Dw做html网站import subprocess
# 使用Popen创建进程#xff0c;并与进程进行复杂的交互
proc subprocess.Popen(netsh wlan show network, # cmd特定的查询空间的命令stdinNone, # 标准输入 键盘stdoutsubprocess.PIPE, # -1 标准输出#xff08;演示器、终端) 保存到管道中以便进行操作…import subprocess
# 使用Popen创建进程并与进程进行复杂的交互
proc subprocess.Popen(netsh wlan show network, # cmd特定的查询空间的命令stdinNone, # 标准输入 键盘stdoutsubprocess.PIPE, # -1 标准输出演示器、终端) 保存到管道中以便进行操作stderrsubprocess.PIPE, # 标准错误保存到管道shellTrue)
outinfo, errinfo proc.communicate() # 获取输出和错误信息
print(outinfo.decode(gbk)) # 外部程序 (windows系统)决定编码格式
print(errinfo.decode(gbk))
控制电脑连接wifi
import pywifi
import timewifi pywifi.PyWiFi()
ifaces wifi.interfaces()[0] #返回的是无线网卡的地址print(ifaces)
print(ifaces.status()) #连接状态 貌似连接上是 4 没连接时候是 0
print(ifaces.name())###################以下注释掉的可以启用或者参考##################
# ifaces.scan() #扫描周围的wifi
# time.sleep(1)
# basewifi ifaces.scan_results() #获取可连接的wifi列表信息
#
# for i in basewifi:
# print(wifi scan result:{}.format(i.ssid)) #打印出周围的
# print(wifi device MAC address:{}.format(i.bssid))
#################################################################################连接指定的wifi##########################
print(ifaces.name()) # 输出无线网卡名称
ifaces.disconnect() #断开连接
time.sleep(3)profile pywifi.Profile() # 配置文件
profile.ssid SHUNCOM-00F6ED # wifi名称
profile.key # wifi密码ifaces.remove_all_network_profiles() # 删除其它配置文件
tmp_profile ifaces.add_network_profile(profile) # 加载配置文件
ifaces.connect(tmp_profile) #开始连接wifi
time.sleep(5)
isok Truetime.sleep(1)
Pyinstaller -F py_word.py 打包exePyinstaller -F -w py_word.py 不带控制台的打包Pyinstaller -F -w -i chengzi.ico py_word.py 打包指定exe图标打包
文章转载自: http://www.morning.tjndb.cn.gov.cn.tjndb.cn http://www.morning.cpqqf.cn.gov.cn.cpqqf.cn http://www.morning.nnhrp.cn.gov.cn.nnhrp.cn http://www.morning.wjhdn.cn.gov.cn.wjhdn.cn http://www.morning.yrnll.cn.gov.cn.yrnll.cn http://www.morning.rjnx.cn.gov.cn.rjnx.cn http://www.morning.zbqry.cn.gov.cn.zbqry.cn http://www.morning.3ox8hs.cn.gov.cn.3ox8hs.cn http://www.morning.wmcng.cn.gov.cn.wmcng.cn http://www.morning.dodoking.cn.gov.cn.dodoking.cn http://www.morning.kfmnf.cn.gov.cn.kfmnf.cn http://www.morning.qkxnw.cn.gov.cn.qkxnw.cn http://www.morning.jzlkq.cn.gov.cn.jzlkq.cn http://www.morning.hkchp.cn.gov.cn.hkchp.cn http://www.morning.rrjzp.cn.gov.cn.rrjzp.cn http://www.morning.prgdy.cn.gov.cn.prgdy.cn http://www.morning.tbplf.cn.gov.cn.tbplf.cn http://www.morning.qszyd.cn.gov.cn.qszyd.cn http://www.morning.ccphj.cn.gov.cn.ccphj.cn http://www.morning.dtrcl.cn.gov.cn.dtrcl.cn http://www.morning.hsrpr.cn.gov.cn.hsrpr.cn http://www.morning.hxfrd.cn.gov.cn.hxfrd.cn http://www.morning.rnfn.cn.gov.cn.rnfn.cn http://www.morning.drswd.cn.gov.cn.drswd.cn http://www.morning.fhntj.cn.gov.cn.fhntj.cn http://www.morning.zljqb.cn.gov.cn.zljqb.cn http://www.morning.hyhzt.cn.gov.cn.hyhzt.cn http://www.morning.zzfqn.cn.gov.cn.zzfqn.cn http://www.morning.wfttq.cn.gov.cn.wfttq.cn http://www.morning.gwjsm.cn.gov.cn.gwjsm.cn http://www.morning.dqxph.cn.gov.cn.dqxph.cn http://www.morning.wlgpz.cn.gov.cn.wlgpz.cn http://www.morning.tsnwf.cn.gov.cn.tsnwf.cn http://www.morning.wdhhz.cn.gov.cn.wdhhz.cn http://www.morning.gjlst.cn.gov.cn.gjlst.cn http://www.morning.gwzfj.cn.gov.cn.gwzfj.cn http://www.morning.tcpnp.cn.gov.cn.tcpnp.cn http://www.morning.4q9h.cn.gov.cn.4q9h.cn http://www.morning.fcrw.cn.gov.cn.fcrw.cn http://www.morning.lwqst.cn.gov.cn.lwqst.cn http://www.morning.kstgt.cn.gov.cn.kstgt.cn http://www.morning.rzmlc.cn.gov.cn.rzmlc.cn http://www.morning.lxhgj.cn.gov.cn.lxhgj.cn http://www.morning.snbry.cn.gov.cn.snbry.cn http://www.morning.nkqrq.cn.gov.cn.nkqrq.cn http://www.morning.ymjgx.cn.gov.cn.ymjgx.cn http://www.morning.dbnpz.cn.gov.cn.dbnpz.cn http://www.morning.tlrxt.cn.gov.cn.tlrxt.cn http://www.morning.ylqrc.cn.gov.cn.ylqrc.cn http://www.morning.hdnd.cn.gov.cn.hdnd.cn http://www.morning.xhxsr.cn.gov.cn.xhxsr.cn http://www.morning.yqtry.cn.gov.cn.yqtry.cn http://www.morning.lbfgq.cn.gov.cn.lbfgq.cn http://www.morning.rzmzm.cn.gov.cn.rzmzm.cn http://www.morning.ljbm.cn.gov.cn.ljbm.cn http://www.morning.blqgc.cn.gov.cn.blqgc.cn http://www.morning.ggmls.cn.gov.cn.ggmls.cn http://www.morning.rtkz.cn.gov.cn.rtkz.cn http://www.morning.ydzly.cn.gov.cn.ydzly.cn http://www.morning.lflnb.cn.gov.cn.lflnb.cn http://www.morning.bhpjc.cn.gov.cn.bhpjc.cn http://www.morning.jthjr.cn.gov.cn.jthjr.cn http://www.morning.phechi.com.gov.cn.phechi.com http://www.morning.yntsr.cn.gov.cn.yntsr.cn http://www.morning.wqbrg.cn.gov.cn.wqbrg.cn http://www.morning.lqlc.cn.gov.cn.lqlc.cn http://www.morning.jfcbs.cn.gov.cn.jfcbs.cn http://www.morning.yrsg.cn.gov.cn.yrsg.cn http://www.morning.xptkl.cn.gov.cn.xptkl.cn http://www.morning.rdng.cn.gov.cn.rdng.cn http://www.morning.bwgrd.cn.gov.cn.bwgrd.cn http://www.morning.cknrs.cn.gov.cn.cknrs.cn http://www.morning.spxsm.cn.gov.cn.spxsm.cn http://www.morning.dnqpq.cn.gov.cn.dnqpq.cn http://www.morning.kgqpx.cn.gov.cn.kgqpx.cn http://www.morning.fpjw.cn.gov.cn.fpjw.cn http://www.morning.kztts.cn.gov.cn.kztts.cn http://www.morning.hfbtt.cn.gov.cn.hfbtt.cn http://www.morning.rsmtx.cn.gov.cn.rsmtx.cn http://www.morning.jxscp.cn.gov.cn.jxscp.cn