go 格式化 int,位数不够0补齐 n := 32 sInt := fmt.Sprintf("%07d", n) 转载于:https://www.cnblogs.com/chunyou128/p/6294247.html golang 2023-12-15 44 点赞 0 评论 66 浏览
linux下C语言中的flock函数用法 . 表头文件 #include 定义函数 int flock(int fd,int operation); 函数说明 flock()会依参数operation所指定的方式对参数fd所指的文件做各种锁定或解除锁定的动作。此函数只能锁定整个文件,无法锁定文件的某一区域。 参数 operation有下列四种情况: LOCK_SH 建立共享锁定。多个进程可同时对 Linux 2023-10-06 43 点赞 0 评论 65 浏览