摘要:
#include <stdio.h> #include <string.h> int main() { printf("%ld\n",strlen("quit")); FILE *fp=NULL; char file[200]; char cc='\n'; fp=fopen("writefile.t 阅读全文
摘要:
linux执行sh报错line 5: $'\r': command not found 解决方案: yum -y install dos2unix* dos2unix *.* 阅读全文
摘要:
下载rpm包:http://rpmfind.net/linux/rpm2html/search.php?query=yum 最近手贱,卸载了fedora下的yum,装了半天装不上去,一直报错:error: Failed dependencies 如何解决? rpm -ivh 包名 --nodeps 阅读全文
摘要:
errno、perror() 和 strerror() C 语言提供了 perror() 和 strerror() 函数来显示与 errno 相关的文本消息。 perror() 函数显示您传给它的字符串,后跟一个冒号、一个空格和当前 errno 值的文本表示形式。 strerror() 函数,返回一 阅读全文
摘要:
早上用qq电脑管家杀了毒,下午用gcc编译好exe后执行exe程序就报错如下: 解决方法:卸载qq电脑管家,亲测有效。 但是之后还是会出现这种情况,装了win64的gcc还是不行,所以之后我就在VMWARE里的ubantu里写程序,就不会遇到这种情况 阅读全文
摘要:
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc,char *argv[]) { if (argc == 1) { fprintf(stderr, "Error - One parameter i 阅读全文
摘要:
import pandas as pd df=pd.DataFrame({ "name":["Tom","Jerry","Tony","June"], "age":[16,42,38,22], "province":["A","B","C","D"], "country":["Amerian","J 阅读全文
摘要:
#-*-coding:utf8-*- from pywinauto.application import Application app = Application(backend="uia").start("notepad.exe") 运行报错:ImportError: DLL load fail 阅读全文
摘要:
之前用socket都是服务端等待客户端连接; 最近有个需求,同一个局域网内,客户端等待服务端多次连接,多次接收服务端的命令在客户端执行,拿到执行结果并返回给服务端,且如果一方断掉,另一方要继续保持,等待对方的下一次连接 不废话,直接上代码; 无论是先运行server或者是先运行client,都可以进 阅读全文
摘要:
最近在网络编程开发中遇到socket.error: [Errno 10054] An existing connection was forcibly closed by the remote host这样的错误,查了些资料也没什么用; 最后发现原来是socket server在设计时提前将sock 阅读全文