摘要: pyinstaller 介绍 PyInstaller除了win32平台外还支持Linux,Unix平台.py2exe的用法在前面的博文里已经有了,现在看看PyInstaller,pyinstaller是目前应用最多的python打包工具,也是我最常用的。 PyInstaller本身并不是Python 阅读全文
posted @ 2023-05-21 18:04 老年新手工程师 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 阅读全文
posted @ 2023-01-29 12:15 老年新手工程师 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 创建守护进程配置文件 vim /etc/docker/daemon.json 填写国内镜像加速器地址 {"registry-mirrors":["https://registry.docker-cn.com","http://hub-mirror.c.163.com","https://docker 阅读全文
posted @ 2022-09-19 16:27 老年新手工程师 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 3 yum -y install gcc 4 yum -y install gcc-c++ 5 yum install -y yum-utils 6 yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/cen 阅读全文
posted @ 2022-09-19 15:48 老年新手工程师 阅读(10) 评论(0) 推荐(0) 编辑
摘要: #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <pthread.h> void sys_err(const char *str) { perror(str); exit( 阅读全文
posted @ 2022-08-17 15:53 老年新手工程师 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 【说明】 在父进程中使用wait。流程如下: 父进程没有子进程,调用wait后,不阻塞父进程,父进程按照正常流程执行。 父进程有子进程,但是所有子进程的状态都不是“挂起”状态,把父进程设置成“等待”状态。 父进程有子进程,而且这个子进程的状态是“挂起”状态,回收子进程占用的进程表,并且解除父进程的阻 阅读全文
posted @ 2022-08-16 14:28 老年新手工程师 阅读(1298) 评论(0) 推荐(0) 编辑
摘要: #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> int main(void) { int fd; //创建文件,获取文件描述符 fd = open("ps.out",O_WRONLY|O_CR 阅读全文
posted @ 2022-08-16 11:08 老年新手工程师 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 函数说明: execlp()会从PATH 环境变量所指的目录中查找符合参数file的文件名,找到后便执行该文件,然后将第二个以后的参数当做该文件的argv[0]、argv[1]……,最后一个参数必须用空指针(NULL)作结束。如果用常数0来表示一个空指针,则必须将它强制转换为一个字符指针,否则将它解 阅读全文
posted @ 2022-08-16 11:04 老年新手工程师 阅读(1101) 评论(0) 推荐(0) 编辑
摘要: #include <unistd.h> #include <sys/types.h> #include <stdio.h> int main(void) { int fd[2]; int pid; if(pipe(fd) == -1) perror("pipe");//创建子进程 pid = for 阅读全文
posted @ 2022-08-13 13:38 老年新手工程师 阅读(59) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> typedef struct { int val;//指向下一个节点 struct node *p_next; }node; int main(){ node node1 = {10}, node2 = {20},node3 = {30}; node head 阅读全文
posted @ 2022-08-08 11:07 老年新手工程师 阅读(25) 评论(0) 推荐(0) 编辑