摘要: 1.代码按照网上百度的格式进行书写如下: 但运行后,始终报错如下: 百度了xlrd网页: 分明支持xls和xlsx两种格式的文件,但运行始终报错。 最后找到原因是因为我所读取的文件虽然是以.xls命名,实际并不是excel表格,验证方法有两种: 方法一:新建txt文件,打开该txt,将原想读取的xl 阅读全文
posted @ 2018-10-07 20:10 编程的爬行者 阅读(6581) 评论(0) 推荐(0) 编辑
摘要: 因为想用python实现读写excel。百度了下,要安装xlwt和xlrd,网上各种方法,很多都不便利。最后利用pip安装很方便。 第一步:浏览器检索“xlwt安装”,点击第一个网页(百度) 即出现如下界面,醒目的“pip install xlwt”,电脑win+R打开cmd,输入pip insta 阅读全文
posted @ 2018-09-30 17:09 编程的爬行者 阅读(15086) 评论(0) 推荐(0) 编辑
摘要: 原文来自:http://www.linuxfederation.com/linux-everywhereLinux无处不在“Linux无处不在。从空间站到微波炉到有Linux。”你可能听说很多以及一直存在这样的疑问:那是不是仅仅是个短句或者它是真的吗?答案是肯定的。世界上最大的公司各种方式在使用Linux,可能在我没说出公司的名字之前你很难相信。好吧,做好准备,我会告诉你在全球范围内,哪些地方使用了Linux以及如何使用的。政府:大多数政府使用Linux,很明显有两大原因:第一省钱;第二Linux的灵活性。下面是罗列全球范围内使用Linux的政府:*美国——始于2001年7月,白宫开始迁移所有 阅读全文
posted @ 2013-12-29 15:49 编程的爬行者 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 第一部分 软件测试综述第一章 软件测试的背景1.软件测试员的目标:尽可能早地找到软件缺陷,并确保其能得以修复。2.仅仅测试程序是否按预期方式运行有何问题:程序能完好的跑通并不代表软件不存在缺陷,有些缺陷是功能实现不完整,或者说未实现原本应该有的功能。还有可能出现本不该实现的功能却出现了这样的功能也是软件缺陷。所以单纯的测试程序是否按预期方式运行存在很大的问题。3.好的测试人员力求完美,但不可求完美,尽力接近目标。要知道何时追求“完美”,何时做到“够好”。4.给出理由说明产品说明通常是软件产品制造中缺陷的最大来源: 说不出来就做不出来。在许多情况下说明书没有写;也有可能因为说明书不够全面、经常改 阅读全文
posted @ 2013-12-12 10:39 编程的爬行者 阅读(2629) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std;struct patron{ double mon; string name;};int main(){ int num,count1=0,count2=0; ifstream fin; char filename[20]; cout>num; fin.get(); patron *newp=new patron[num]; for(int i=0;i>newp[i].mon; fin.get(); } cout10000) { cout<<newp[j].n 阅读全文
posted @ 2013-12-03 02:00 编程的爬行者 阅读(180) 评论(0) 推荐(0) 编辑
摘要: #include #include #include const int SIZE=20;using namespace std;int main(){ char filename[SIZE]; char ch; ifstream inFile;//inFile 是有一个ifstream对象 cout>ch; while(inFile.good()) { ++count; inFile>>ch; } if(inFile.eof()) cout<<"End of file reached.\n"; else if(inFile.fail()) c 阅读全文
posted @ 2013-12-03 01:33 编程的爬行者 阅读(134) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std;int main(){ string words; int yy=0; int fy=0; int other=0; cout>words) { if(isalpha(words[0])) { if(words[0]=='q' && (words.size())==1) break; else { switch(words[0]) { case 'a': case 'o': case 'e': case 'i 阅读全文
posted @ 2013-12-02 22:51 编程的爬行者 阅读(122) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std;const int MSIZE=100;struct juankuan{ string name; double mon;};int main(){ int num; (cin>>num).get(); int *c1=new int[num];//存储捐款超过10000的捐款个体 int count1=0;//记录捐款超过10000的个数 int *c2=new int[num];//存储捐款超过10000的捐款个体 int count2=0; juankuan *newjk=new juankuan[n 阅读全文
posted @ 2013-12-02 22:32 编程的爬行者 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;const double N1=35000;const int N2=15000;const int N3=5000;int main(){ double salary; double sui=0; cout>salary && salary>=0) { if(salaryN3 && salaryN2 && salary<=N1) { sui=(salary-N2)*0.15+(N2-N3)*0.10+N3*0; //cout<<"税收= " 阅读全文
posted @ 2013-12-02 00:25 编程的爬行者 阅读(131) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;const int strsize=30;const int BOPSIZE=5;void showmenu(){ cout>ch && ch!='q') { switch(ch) { case 'a': for(i=0;i<BOPSIZE;i++) cout<<newbop[i].fullname<<endl; break; case 'b': for(i=0;i<BOPSIZE;i++) cout<<newbop[i 阅读全文
posted @ 2013-12-01 23:43 编程的爬行者 阅读(134) 评论(0) 推荐(0) 编辑