''' logging模块: logging的日志可以分为 debug():Detailed information, typically of interest only when diagnosing problems. info():Confirmation that things are working as expected. warning():An indication that something unexpected happened, or indicative of som
1.执行命令os.system('ls') os.system 返回1 or 0 ,不能当做数据发送 # windows # dir 查看某个文件夹下子自文件名与子文件夹名 # ipconfig 查看本地网卡的ip信息 # tasklist 查看运行的进程 # linux # ls # ifconfig # ps aux 2.subprocess模块 但注意注意注意: res = subprocess.Popen(cmd.decode('utf-8'),shell=True,stderr=su