摘要: 处理签文件 代码 lines = [] with open('id.txt', 'r') as f_in: for line in f_in: line = line[0:-1] + ':' + '\n' lines.append(line) with open('id_.txt', 'w') as 阅读全文
posted @ 2020-10-27 08:48 15号计划 阅读(916) 评论(0) 推荐(0) 编辑
摘要: 处理前文件内容 代码 # 读取代码 fr = open('three.txt', 'r') dic = {} keys = [] # 用来存储读取的顺序 for line in fr: v = line.strip().split(':') dic[v[0]] = v[1] keys.append( 阅读全文
posted @ 2020-10-27 08:40 15号计划 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 处理前 代码 ids = [] with open('id.txt') as file: # print(len(file.readlines())) for i in file.readlines(): ids.append(i[12:].split()) def text_save(filena 阅读全文
posted @ 2020-10-27 08:37 15号计划 阅读(1343) 评论(0) 推荐(0) 编辑
摘要: 环境python3.6 合并前第一个文件和第二个文件 代码 file1 = open("my.txt","r") file2 = open("ids.txt","r") file1_lists =file1.readlines() file2_lists =file2.readlines() fil 阅读全文
posted @ 2020-10-27 08:32 15号计划 阅读(1115) 评论(0) 推荐(0) 编辑
摘要: python环境3.6 安装PyMouse和pyautogui(安装过程百度) PyMouse安装 一.使用外部库PyMouse,使用pip可以直接下载 pip install pymouse (安装pymouse必须要xlib的支持) pip install python-xlib pip ins 阅读全文
posted @ 2020-10-25 15:54 15号计划 阅读(1488) 评论(3) 推荐(0) 编辑
摘要: import re # 下方引号内添加替换掉请求头内容 headers_str = """ Accept: application/json, text/javascript, */*; q=0.01 Accept-Encoding: gzip, deflate, br Accept-Languag 阅读全文
posted @ 2020-10-25 15:20 15号计划 阅读(1223) 评论(0) 推荐(0) 编辑
摘要: 1、apache服务器安装与配置。 yum install httpd -y systemctl start httpd && systemctl enable httpd systemctl stop firewalld setenforce 0 //设置selinux安全级别为premise重启 阅读全文
posted @ 2019-12-18 15:31 15号计划 阅读(1163) 评论(1) 推荐(0) 编辑