10 2021 档案

摘要:卸载10月份更新的补丁 KB5006670,,即可 win+R cmd appwiz.cpl 先卸载最新的更新补丁,然后重启; 卸载相对应补丁重启即可~! 阅读全文
posted @ 2021-10-28 10:09 茶叶蛋蛋 阅读(1397) 评论(0) 推荐(0) 编辑
摘要:a = datetime.now().strftime('%Y-%m-%d') print(a) 阅读全文
posted @ 2021-10-27 11:28 茶叶蛋蛋 阅读(1016) 评论(0) 推荐(0) 编辑
摘要:为了给孩子出随机口算题,几行代码搞定! import random def cale(minnum, maxnum, operator, maxsum=None, minsum=None): """随机出数学计算题""" while True: a = random.randint(minnum, 阅读全文
posted @ 2021-10-22 23:05 茶叶蛋蛋 阅读(161) 评论(0) 推荐(0) 编辑
摘要:平时在用Pycharm的时候注意到在补全函数提示词前面有c,m,p等小分类,这些到底是什么意思呢,一起看一下吧! c 代表Class:类m 代表Method:类实例方法F 代表Function:函数f 代表Field:类属性,域v代表Variable:变量p 代表Property:python内置函 阅读全文
posted @ 2021-10-19 11:26 茶叶蛋蛋 阅读(202) 评论(0) 推荐(0) 编辑
摘要:Rect对象的属性:1.返回一个坐标数字x,ytop, left, bottom, rightcenterx, centerysizewidth, heightw,h;2.返回一个(X,Y)坐标数组topleft (左上)bottomleft (左下)bottomright (右下)midtop(中 阅读全文
posted @ 2021-10-13 16:25 茶叶蛋蛋 阅读(1337) 评论(0) 推荐(0) 编辑
摘要:刚刚在运行python文件的时候竟然报SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: tr这个错误,其实引起这个错误的原因就是转义的问题。 sys.path.append(' 阅读全文
posted @ 2021-10-08 16:59 茶叶蛋蛋 阅读(22564) 评论(0) 推荐(1) 编辑
摘要:Python 批量查找文件中含有关键字的文件,并存储到新文件中 import os from re import T path = r'F:\pass\pass' # 绝对路径目录 files = os.listdir(path) # 得到文件夹下的所有文件名称 for file in files: 阅读全文
posted @ 2021-10-08 14:00 茶叶蛋蛋 阅读(3076) 评论(0) 推荐(0) 编辑

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