06 2024 档案

摘要:~ # ~ # date "+%Y-%m-%d %H:%M:%S" 2024-06-27 17:34:21 ~ # 阅读全文
posted @ 2024-06-27 17:38 你说夕阳很美 阅读(17) 评论(0) 推荐(0) 编辑
摘要:from pathlib import Path # 创建一个Path对象表示目录 base_directory = Path('C:/path/to/your/directory') # 使用/运算符来拼接子目录和文件名 file_path = base_directory / 'subdirec 阅读全文
posted @ 2024-06-27 17:23 你说夕阳很美 阅读(95) 评论(0) 推荐(0) 编辑
摘要:from pathlib import Path def find_latest_modified_file(directory): latest_file = None latest_file_time = 0 # 遍历目录中的所有文件 for file in directory.iterdir( 阅读全文
posted @ 2024-06-27 17:21 你说夕阳很美 阅读(85) 评论(0) 推荐(0) 编辑
摘要:都是通过css定位 方法1,直接css定位,然后value_of_css_property('color'),获取颜色之后把转换成16进制,类似#f5222d这样 其中'color'表示文本颜色,背景颜色及其他可自行百度 color = str(driver.find_elements(By.CSS 阅读全文
posted @ 2024-06-26 10:08 你说夕阳很美 阅读(45) 评论(0) 推荐(0) 编辑
摘要:Python之pandas读取Excel表格空值为nan的处理_python pandas读取excel nan-CSDN博客 背景: pd.read_excel(file_name).to_dict(orient='records')读取数据为字典格式,然后做一些处理和筛选之后,再用json.du 阅读全文
posted @ 2024-06-24 13:42 你说夕阳很美 阅读(293) 评论(0) 推荐(0) 编辑
摘要:代码 myclient = pymongo.MongoClient("mongodb://root:xxx@192.168.30.xxx:27017/xxx?authSource=admin") mydb = myclient["xxx"] mycol = mydb["xxx"] 报错全文 pymo 阅读全文
posted @ 2024-06-20 15:23 你说夕阳很美 阅读(157) 评论(0) 推荐(0) 编辑
摘要:电脑使用了如vmware workstation,会提示连接到主机还是虚机,但不做选择时,大概十来秒会默认选择连接到主机 阅读全文
posted @ 2024-06-20 10:21 你说夕阳很美 阅读(49) 评论(0) 推荐(0) 编辑
摘要:背景:某个容器中的应用出现死循环,一直在打印日志。而docker logs -f 容器id命令会打印所有日志 解决办法 办法1:docker logs -f -n10 容器id,通过-n指定显示行数 办法2:echo "" > $(docker inspect --format='{{.LogPat 阅读全文
posted @ 2024-06-19 17:23 你说夕阳很美 阅读(354) 评论(0) 推荐(0) 编辑
摘要:Linux下如何查看系统启动时间和运行时间以及安装时间 - 努力哥 - 博客园 (cnblogs.com) cat /proc/uptime 输出: 5113396.94 575949.85 第一数字即是系统已运行的时间5113396.94 秒,运用系统工具date即可算出系统启动时间 代码: [r 阅读全文
posted @ 2024-06-07 17:53 你说夕阳很美 阅读(95) 评论(0) 推荐(0) 编辑
摘要:PS C:\pycharm\run\test-xxx-ui> pip config list global.index-url='http://mirrors.aliyun.com/pypi/simple/' install.trusted-host='mirrors.aliyun.com' PS 阅读全文
posted @ 2024-06-05 11:53 你说夕阳很美 阅读(65) 评论(0) 推荐(0) 编辑

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