OS模块 属于python中的内置模块,专门用来处理系统相关的操作 使用方法:直接使用导入使用 import OS 具体的使用方法如下: 1.文件路径的获取: py文件的地址 具体的实现过程: import os #获取当前文件的绝对路径 file_path=os.path.abspath(__fi ...
分类:
编程语言 时间:
2021-02-22 12:04:44
阅读次数:
0
git tag -a "obj-v1.1.4" -m "rows read" git push --follow-tags 未执行 git add 操作 git restore file_name、git checkout -- file_name 或者 git reset --hard HEAD ...
分类:
其他好文 时间:
2021-02-22 11:46:41
阅读次数:
0
[root@op-benchmark-216 ~]# cat /etc/dhcp/dhcpd.conf # dhcpd.conf # # Sample configuration file for ISC dhcpd # # option definitions common to all supp ...
分类:
其他好文 时间:
2021-02-20 12:34:38
阅读次数:
0
一、服务器 1、安装haneWIN,使用管理员身份运行,进行注册 2、exports页面下进行edit exports file 3、编辑保存。 e:\nfs :共享文件夹路径 -public:公共权限 -name:nfs :显示名称 4、重启nfs服 5、挂载成功 二、客户端 1、控制面板》程序》 ...
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 1. os.path.abspath(file)返回的是.py文件的绝对路径,也就是settings.py这个文件路径 2. os.path.dirname( ...
分类:
其他好文 时间:
2021-02-20 11:46:09
阅读次数:
0
译文 NAME objcopy - copy and translate object files 概要 objcopy [-F bfdname|--target=bfdname] [-I bfdname|--input-target=bfdname] [-O bfdname|--output-ta ...
分类:
其他好文 时间:
2021-02-20 11:43:56
阅读次数:
0
C++ 关键代码 //导出STPvoid ExportFile::ExportSTPfile(){ try { UF_initialize(); string filepath = strDir + "\\" ;//拼接路径 //获取图层过滤 PropertyList *stringLayerPro ...
分类:
其他好文 时间:
2021-02-19 13:49:31
阅读次数:
0
valgrind是很好的检查内存泄漏的工具 使用命令: $ valgrind --tool=memcheck --log-file=/root/valgrind_log_all --leak-check=full --error-limit=no --show-reachable=yes --tra ...
分类:
其他好文 时间:
2021-02-19 13:36:36
阅读次数:
0
1.设置权限 show global variables like "secure_file_priv"//不为NULL 如果显示为NULL,在my.ini中添加secure_file_priv= //不加任何值 2.写文件 写在的磁盘根目录D盘 写在了D:\phpStudy\MySQL\data ...
分类:
数据库 时间:
2021-02-19 13:11:02
阅读次数:
0
1、windows10 pip设置目录:C:\ProgramData\pip\pip.ini [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple/ ←--清华大学源 2、dos命令:pip config --global set ...
分类:
编程语言 时间:
2021-02-19 13:05:20
阅读次数:
0