随笔分类 -  Python

Python学习
摘要:' 以下是按键精灵录制的内容 Rem kaishi'MessageBox "开始"Delay 1000FindPic 0,0,1780,300,"Attachment:\还剩余.bmp",0.9,intX,intYIf intX > 0 And intY > 0 Then 'MessageBox " 阅读全文
posted @ 2023-06-21 09:33 沭水之虾 阅读(55) 评论(0) 推荐(0) 编辑
摘要:# -*- coding:utf8 -*- import time from selenium import webdriver f = open('sdsf.txt',mode='r',encoding='utf-8') keys=f.readlines() f.close() driver = 阅读全文
posted @ 2021-06-11 09:35 沭水之虾 阅读(141) 评论(0) 推荐(0) 编辑
摘要:f = open('sdsf.txt',mode='r',encoding='utf-8')keys=f.readlines()f.close() 阅读全文
posted @ 2021-06-11 07:36 沭水之虾 阅读(386) 评论(0) 推荐(0) 编辑
摘要:from selenium import webdriver from selenium.webdriver.common.keys import Keys option=webdriver.ChromeOptions() option.add_argument('--start-maximized 阅读全文
posted @ 2021-06-10 16:38 沭水之虾 阅读(111) 评论(0) 推荐(0) 编辑
摘要:from docx import Document from docx.shared import Inches document = Document() document.add_heading('Document Title', 0) p = document.add_paragraph('A 阅读全文
posted @ 2021-05-14 18:27 沭水之虾 阅读(110) 评论(0) 推荐(0) 编辑
摘要:1 from docx import Document 2 from docx.shared import Inches 3 4 document = Document() 5 6 document.add_heading('Document Title', 0) 7 8 p = document. 阅读全文
posted @ 2021-05-14 18:09 沭水之虾 阅读(153) 评论(0) 推荐(0) 编辑
摘要:# -*- coding: utf-8 -*- import os import re #设定文件路径 path=r'D:\郭鹏历届真题解析2007-2020' i=1 #对目录下的文件进行遍历 for file in os.listdir(path): #判断是否是文件 file_name=os. 阅读全文
posted @ 2021-05-14 16:57 沭水之虾 阅读(251) 评论(0) 推荐(0) 编辑
摘要:import re test_err_date = '如这样的日期2016-12-35也可以匹配到.测试如下.' print(re.search(r"(\d{4}-\d{1,2}-\d{1,2})",test_err_date).group(0)) 阅读全文
posted @ 2021-05-14 16:31 沭水之虾 阅读(426) 评论(0) 推荐(0) 编辑
摘要:# -*- coding: utf-8 -*- import os #设定文件路径 path=r'D:\郭鹏历届真题解析2007-2020' i=1 #对目录下的文件进行遍历 for file in os.listdir(path): #判断是否是文件 file_name=os.path.join( 阅读全文
posted @ 2021-05-14 16:10 沭水之虾 阅读(209) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示