基于Python的文件、目录和路径操作,我们一般使用的是os.path模块。
pathlib是它的替代品,在os.path上的基础上进行了封装,实现了路径的对象化,api更加通俗,操作更便捷,更符编程的思维习惯。
pathlib模块提供了一些使用语义化表示文件系统路径的类,这些类适合多种操作系统。路... ...
分类:
其他好文 时间:
2020-05-20 12:23:46
阅读次数:
52
在新版谷歌浏览器中,默认并没有开启多线程下载,所以,需要我们手动开启,在谷歌浏览器地址栏输入chrome://flags/命令并回车,进入Chrome实验功能设置。 在Search Flags的搜索框里,输入Parallel downloading并回车,该选项默认是Default设置,将该设置改为 ...
分类:
编程语言 时间:
2020-05-20 00:25:42
阅读次数:
418
调整静态库 othrt linker 的链接顺序,改为 -lopencv_highgui -lopencv_imgproc -lopencv_core ...
分类:
其他好文 时间:
2020-05-19 20:35:24
阅读次数:
60
前置 我在很久之前就发现了使用第三方 markdown 主题将产生一个的问题,今日在社区发现依然有人写文章来推荐这种做法。接下来我告诉你为什么最好不要这样做以及分享一些 markdown 技巧。若有不足,恳请指点! 第三方主题 在技术社区经常看见使用编辑器 markdown 主题渲染出来的文章,其目 ...
分类:
其他好文 时间:
2020-05-19 20:22:43
阅读次数:
52
os 模块提供了非常丰富的方法用来处理文件和目录。常用的方法如下表所示: os.access(path, mode) os.chdir(path) os.chflags(path, flags) os.chmod(path, mode) os.chown(path, uid, gid) os.chr ...
分类:
编程语言 时间:
2020-05-18 16:05:53
阅读次数:
52
1.服务器型号 [root@guanbin-k8s-master ~]# dmidecode|grep "System Information" -A9|egrep "Manufacturer|Product" Manufacturer: VMware, Inc. Product Name: VMw ...
分类:
系统相关 时间:
2020-05-17 23:10:14
阅读次数:
172
今天在用navicat创建MYSQL存储过程的时候,总是出现错误,错误信息如下. 1303-Can 't create a PROCEDURE from within another stored routine.这个错误信息,比较难以理解,于是仔细检查存储过程内容,也没什么问题呀,代码如下: CR ...
分类:
数据库 时间:
2020-05-17 16:00:36
阅读次数:
88
Petya and Vasya are competing with each other in a new interesting game as they always do. At the beginning of the game Petya has to come up with an a ...
分类:
其他好文 时间:
2020-05-17 13:32:47
阅读次数:
135
今天一个客户的数据库在启动时报ORA-00600 [kkdlcob-objn-exists], [37]错误,数据库不能打开,同时伴随着有ORA-00704的不错,请求紧急救援。
报错说明:
kkdlcob-objn-exists表示dataobj#已经存在。
37代表dataobj#的值。
如果在数据库启动阶段报错,同时伴随着有ORA-00704的错误,那么说明数据库在bootstrap阶段报错,也意识着在创建系统自带对象时报错。
分类:
数据库 时间:
2020-05-17 10:29:39
阅读次数:
105
Petya and Vasya are competing with each other in a new interesting game as they always do. At the beginning of the game Petya has to come up with an a ...
分类:
其他好文 时间:
2020-05-16 23:37:41
阅读次数:
129