硬链接 创建硬链接会增加额外的记录项以引用文件 对应于同一文件系统上一个物理文件 每个目录引用相同的inode号 创建时链接数递增 删除文件时: rm命令递减计数的链接 文件要存在,至少有一个链接数 当链接数为零时,该文件被删除 不能跨越驱动器或分区 语法: In filename [linknam ...
分类:
其他好文 时间:
2019-12-24 11:51:44
阅读次数:
128
引用单元:uses ShellAPI; 函数原型:function ShellExecute(hWnd: HWND; Operation, FileName, Parameters,Directory: PChar; ShowCmd: Integer): HINST; stdcall; hWnd:用 ...
1 #读取表格内容 2 import xlrd 3 wb = xlrd.open_workbook(filename=file)#打开文件 4 sheet_names = wb.sheet_names() #读取文件名称 5 Sheet=wb.sheet_by_index(i) #i为表格文件中表的 ...
分类:
编程语言 时间:
2019-12-23 13:24:20
阅读次数:
97
logging.basicConfig( level=logging.DEBUG, #修改默认显示 filename="logger.log", #采用追加的方式 filemode='w', format="%(asctime)s %(filename)s[%(lineno)d] %(message ...
分类:
其他好文 时间:
2019-12-22 16:10:14
阅读次数:
75
默认配置当你访问http://abc.example.com/dir 时不会加”/”常见做法 if (-d $request_filename){ rewrite ^/(.*)([^/])$ http://$host/$1$2/ permanent; } 更佳的替代方法optimize_server ...
分类:
其他好文 时间:
2019-12-22 14:42:49
阅读次数:
86
进入vi vi filename 打开或新建文件,并将光标置于第一行首 vi +n filename 打开文件,并将光标置于第 n行首 vi + filename 打开文件,并将光标置于最后一行首 vi -r filename 在上次正用 vi编辑时发生系统崩溃,恢复文件 vi file1....f ...
分类:
系统相关 时间:
2019-12-22 12:35:35
阅读次数:
116
一、logging基本https://www.cnblogs.com/huaizhi/p/11245246.html import logginglogging.basicConfig() 默认项logging.debug('This is a debug message')logging.info ...
分类:
编程语言 时间:
2019-12-22 10:26:44
阅读次数:
71
f = open(filename, mode) filename:文件路径 mode:打开文件的模式,默认只读 r。 打开模式分为如下: a、r —— 只读。默认模式,如果文件不存在就报错,存在就正常读取 b、w ——只写。如果文件不存在,新建文件然后写入;若存在,先清空文件内容,再写入。 c、a ...
分类:
编程语言 时间:
2019-12-22 00:44:41
阅读次数:
98
fdfs 存储节点storage安装nginx,修改nginx配置文件 location /group1/M00/ { root /fdfs/storage/data; if ($arg_attname ~ "^(.+)") { #设置下载 add_header Content-Type appli ...
分类:
其他好文 时间:
2019-12-21 17:04:59
阅读次数:
134
原文:WPF 精修篇 调用Win32Api 栗子是 调用WIn32API 让窗口最前 后台代码 [DllImport("user32.dll")] private static extern bool SetForegroundWindow(IntPtr hWnd); ... ...