摘要: import os import docx from docx.document import Document from docx.oxml.table import CT_Tbl from docx.oxml.text.paragraph import CT_P from docx.table 阅读全文
posted @ 2023-09-03 15:36 祺琪 阅读(653) 评论(0) 推荐(0)
摘要: import zipfile import os import shutil import hashlib import send2trash ''' 假设所有的word文档存放在某路径中,这个路径中包含各种杂七杂八的玩意 使用Everything,或者"筛选文件.py"把所有的docx文件移动到C 阅读全文
posted @ 2023-09-03 15:19 祺琪 阅读(39) 评论(0) 推荐(0)
摘要: from docx.document import Document as _Document from docx.oxml.text.paragraph import CT_P from docx.oxml.table import CT_Tbl from docx.table import _C 阅读全文
posted @ 2023-09-03 14:37 祺琪 阅读(1112) 评论(0) 推荐(0)
摘要: print(driver.page_source) # 定位至节点 elem = driver.find_element(By.ID, "info") htm_dat = elem.get_property("outerHTML") print('获取节点的html源码:', htm_dat) ht 阅读全文
posted @ 2023-09-02 16:37 祺琪 阅读(174) 评论(0) 推荐(0)
摘要: #它会取class含有有test1和test2的元素xpath('//div[contains(@class,"test1") and contains(@class,"test2")]') #它会取class 含有 test1 或者test2满足时,或者同时满足时的元素xpath('//div[c 阅读全文
posted @ 2023-08-31 08:33 祺琪 阅读(452) 评论(0) 推荐(0)
摘要: from nicegui import uiimport pandas as pdimport matplotlib, numpyui.label('Welcome to NiceGUI!')ui.button('Click Here', on_click=lambda: ui.notify('Bu 阅读全文
posted @ 2023-08-26 09:20 祺琪 阅读(133) 评论(0) 推荐(0)
摘要: import randomimport timefrom selenium import webdriverfrom selenium.webdriver.chrome.service import Servicefrom selenium.webdriver.common.proxy import 阅读全文
posted @ 2023-08-26 09:15 祺琪 阅读(50) 评论(0) 推荐(0)
摘要: NiceGUI是一个简单易用的基于Python的Web-UI框架,其目的是使在Python中开发前端应用程序变得容易。 NiceGUI Framework 的 UI 元素基于 Vue 和 Quasar。NiceGUI带有许多现成的元素。它甚至允许不同元素之间的值绑定。NiceGUI 可以轻松显示各种 阅读全文
posted @ 2023-08-26 08:16 祺琪 阅读(1667) 评论(0) 推荐(0)
摘要: https://www.bilibili.com/read/cv20939917 阅读全文
posted @ 2023-08-25 13:35 祺琪 阅读(28) 评论(0) 推荐(0)
摘要: 一、创建虚拟环境 创建虚拟环境有2中方法: 一种是在命令行输入python -m venv 虚拟环境名称 python(3) -m venv myvenv (虚拟目录文件夹) myvenv\scripts\activate activated(退出) 第二种是在命令行输入mkvirtualenv 虚 阅读全文
posted @ 2023-08-25 08:17 祺琪 阅读(145) 评论(0) 推荐(0)