摘要: #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 3 #http://www.cnblogs.com/liu-ke/ 4 import wmi 5 import os 6 import sys 7 import platform 8 import tim 阅读全文
posted @ 2020-04-10 13:08 gtea 阅读(313) 评论(0) 推荐(0) 编辑
摘要: Windows防火墙cmd os.system("netsh firewall set opmode mode=disable") 命令:netsh firewall 参数: ? // 显示命令列表 add // 添加防火墙配置 delete // 删除防火墙配置 dump // 显示一个配置脚本 阅读全文
posted @ 2020-04-10 13:06 gtea 阅读(2764) 评论(0) 推荐(1) 编辑
摘要: agents = [] comp_dict1 = {} comp_dict2 = {} comp_dict1['id'] = zip(id, host_name, ip)[0][0] comp_dict2['id'] = zip(id, host_name, ip)[1][0] comp_dict1 阅读全文
posted @ 2020-04-10 13:03 gtea 阅读(184) 评论(0) 推荐(0) 编辑
摘要: filename = unicode(r"C:\Users\pc\Desktop\新建文件夹\createFile.sh", "utf-8") 阅读全文
posted @ 2020-04-10 13:01 gtea 阅读(1096) 评论(0) 推荐(0) 编辑
摘要: PyCharm 快捷键总结 运行 Shift+alt+F10 执行程序 调试 Shift+alt+F9 Debug调试 Shift + F9 对当前文件进行Debug F8 调试模式下 跳过 F7 调试模式下 进入 F9 快速调试,只在断点和交互处停止 编辑 Alt + Shift 提示信息 Ctr 阅读全文
posted @ 2020-04-10 13:00 gtea 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 国内源: anaconda配置镜像 Mac and Linux 1 2 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --set show_chann 阅读全文
posted @ 2020-04-10 12:57 gtea 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 1 import requests 2 from requests.packages import urllib3 3 #SSL警告 4 urllib3.disable_warnings() 5 requests.adapters.DEFAULT_RETRIES =5 # 增加重连次数 6 7 s 阅读全文
posted @ 2020-04-10 12:55 gtea 阅读(1247) 评论(0) 推荐(0) 编辑
摘要: 免登录 电脑没设置密码,开机如何跳过帐户已锁定的界面,直接进入桌面呢? 1.单击【运行】,或按快捷键:win+r2.输入命令:netplwiz 单击【确定】 如果是2003系列系统:control userpasswords23.单击你的登录账户4.去掉【要使用本机,用户名必须输入用户名和密码】前的 阅读全文
posted @ 2020-04-10 11:55 gtea 阅读(932) 评论(0) 推荐(0) 编辑
摘要: expect远程下载和上传样例 1 #!/bin/sh 2 3 if [ $# -ne 7 ];then 4 exit 8; 5 fi 6 dstip="$1"; 7 dstport="$2"; 8 id="$3"; 9 pw="$4"; 10 dstpath="$5"; 11 localpath= 阅读全文
posted @ 2020-04-09 18:40 gtea 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 1 wget 类似于迅雷,是一种下载工具, 2 通过HTTP、HTTPS、FTP三个最常见的TCP/IP协议下载,并可以使用HTTP代理 3 名字是World Wide Web”与“get”的结合。 4 5 rpm,软件管理,redhat的软件格式rpm,r=redhat,p=package,m=m 阅读全文
posted @ 2020-04-09 18:32 gtea 阅读(234) 评论(0) 推荐(0) 编辑