11 2022 档案
摘要:string.count(str) 统计str在string中出现的次数 s = "一花一木一世界" print(s.count("一")) string.replace(old_str, new_str) 将string中的old_str 替换为 new_str s = "一花一木一世界" # 替
阅读全文
摘要:今天在封装pandas过程中,发现封装脚本的执行耗时明显高于未封装的脚本 复盘问题 import time class Demo: def mock_read_excel(self): print("读取文件") time.sleep(5) return "excel数据" def mock_use
阅读全文
摘要:详细教程:https://www.gairuo.com/p/pandas-sheet https://geek-docs.com/pandas/python-pandas-series/python-pandas-series-filter.html 一、pandas简介 pandas是基于NumP
阅读全文
摘要:移动端安装 ES文件浏览器 安装成功后,打开工具,点击【从PC访问】->【打开】 打开成功会显示ftp访问地址,打开一个文件夹,在文件夹路径输入ftp访问路径,就可以访问移动设备进行文件上传或下载了
阅读全文
摘要:当参数为form-data 或者x-www-form-urlencoded类型时,使用request.POST获取到参数 获取参数方式 request.POST.get('username') 当参数为raw类型时,使用request.body获取到参数,获取的参数需要经过处理才能使用 获取参数方式
阅读全文