摘要: cmd生成指定文件大小: fsutil file createnew e:\2GB.txt 2147483648 文件大小转换 https://cn.unithelper.com/data-storage/299.9-kb-b/ 阅读全文
posted @ 2022-11-09 17:07 sunny.boy 阅读(63) 评论(0) 推荐(0) 编辑
摘要: import osclass GetDir: def __init__(self): pass @staticmethod def get_BASE_DIR(): BASE_DIR = os.path.dirname(__file__)#当前文件所在目录 # print("path:" + BASE 阅读全文
posted @ 2021-10-13 17:20 sunny.boy 阅读(1135) 评论(0) 推荐(0) 编辑
摘要: 在用python文件上传文件时,直接copy postman的python代码执行,总是返回500,百度查询了好多示例都没解决,反复验证,最后发现去掉heards中的Content-Type就好了,如图示 阅读全文
posted @ 2020-10-13 13:32 sunny.boy 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 右键 打开git bash 然后输入如下命令: 1、配置账户信息git config --global user.name “xxxx”git config --global user.email "xxx@xxx" 2、拉取代码到本地 :在哪个目录打开,拉取代码就在哪个目录git remote - 阅读全文
posted @ 2020-09-27 12:32 sunny.boy 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 以我电脑上安装的 yapi 为例: 1、新建一个 .bat 的文件 2、编写命令进入文件所在的目录 3、编写执行命令并保存 下次使用时直接双击该文件就可以了,是不是非常简单,赶快试试吧 阅读全文
posted @ 2020-09-26 02:18 sunny.boy 阅读(139) 评论(0) 推荐(0) 编辑
摘要: '''https://www.cnblogs.com/xiazhenyu/*** 学而思之、思而记之、记而习之 ***''' dict1={ "attr":{ "httpClient":{ "hasData":"false", "cacheKey":"8888rrr" } }} # print(di 阅读全文
posted @ 2020-09-25 18:30 sunny.boy 阅读(807) 评论(0) 推荐(0) 编辑
摘要: 如何使用F12来模拟弱网测试 转载至 https://zhuanlan.zhihu.com/p/78806962 首先第一步你需要一个谷歌浏览器(我相信大多数同学都应该有的),就是这个玩意 漫长的等待 loading....中 好了是不是下载完毕了 ,接下来我们就开始切入正题吧 接下来使用你的洪荒之 阅读全文
posted @ 2020-09-25 00:26 sunny.boy 阅读(1611) 评论(0) 推荐(0) 编辑
摘要: '''https://www.cnblogs.com/xiazhenyu/*** 学而思之、思而记之、记而习之 ***'''stra = "8888"strb = "幸运数字 8888"strc = "666"if stra in strb: # 满足条件 ,使用新值替换旧值 strd = strb 阅读全文
posted @ 2020-09-25 00:15 sunny.boy 阅读(934) 评论(0) 推荐(0) 编辑
摘要: '''https://www.cnblogs.com/xiazhenyu/*** 学而思之、思而记之、记而习之 ***'''# coding=utf-8# 注意:在 Python 3.x 版本后,ConfigParser.py 已经更名为 configparser.pyimport configpa 阅读全文
posted @ 2020-09-24 23:54 sunny.boy 阅读(481) 评论(0) 推荐(0) 编辑
摘要: '''https://www.cnblogs.com/xiazhenyu/*** 学而思之、思而记之、记而习之 ***'''f="dict_file.txt" #定义文件名def writefile(key,value): with open(f, "w") as file: # 只需要将之前的”w 阅读全文
posted @ 2020-09-24 23:40 sunny.boy 阅读(2047) 评论(0) 推荐(0) 编辑