在linux下用matplotlib制作icon # -*- coding: utf-8 -*-import matplotlib.pyplot as pltimport matplotlib.patches as patchesfrom matplotlib.lines import Line2Ddef icondm(): fig1 = plt.figure() ax1 = fig1.add_subp...
Linux下利用sendfile函数实现CopyFile 网上看到的,实测可用!int CopyFile(char *sfn, char *ofn, bool flag){int sfd,ofd;struct stat statbf; sfd=open(sfn,O_RDONLY); if(sfd==-1){ fprintf(stderr,"open file error on %s",sfn);...