摘要: 1、系统性能信息模块psutil: cpu、内存、磁盘、网络等 2、ip地址处理模块IPy: ip地址、网段的基本处理、多网络计算方法等 3、DNS处理模块dnspython: 域名解析、处理 阅读全文
posted @ 2016-03-12 21:13 轻抚离殇 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1,创建数据库查看当前所有存在的数据库:SHOW DATABESES;创建测试数据库test_db:CREATE DATABASE test_db;查看创建好的数据库的定义:SHOW CREATE DATABASE test_db;2,删除数据库删除测试数据库:DROP DATABASE test_... 阅读全文
posted @ 2015-09-19 16:44 轻抚离殇 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 1 void HeapSort(int H[],int length) { 2 BuildingHeap(H,length); 3 for (int i=length-1;i>0;--i) { 4 int temp=H[i];H[i]=H[0];H[0]=temp... 阅读全文
posted @ 2015-09-08 15:53 轻抚离殇 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1 Node *list_reverse(Node *head) { 2 if(NULL == head) { 3 return NULL; 4 } 5 Node *prev,*curr,*reverse_head,*temp; 6 prev=NU... 阅读全文
posted @ 2015-09-08 15:41 轻抚离殇 阅读(126) 评论(0) 推荐(0) 编辑
摘要: xz是一种压缩文件格式,采用LZMA SDK压缩,目标文件较gzip压缩文件(.gz或·tgz)小30%,较·bz2小15%。Linux内核和python源代码都有采用这种压缩方式,那么如何对其进行解压呢?如今tar命令已经可以完成解压,可以使用tar -xJvf linux-4.1.2.tar.x... 阅读全文
posted @ 2015-08-26 16:04 轻抚离殇 阅读(308) 评论(0) 推荐(0) 编辑
摘要: Excel Sheet Column NumberRelated to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column ... 阅读全文
posted @ 2015-06-14 07:14 轻抚离殇 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Excel Sheet Column TitleGiven a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B ... 阅读全文
posted @ 2015-06-14 07:12 轻抚离殇 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Largest NumberGiven a list of non negative integers, arrange them such that they form the largest number.For example, given[3, 30, 34, 5, 9], the larg... 阅读全文
posted @ 2015-06-14 07:07 轻抚离殇 阅读(283) 评论(0) 推荐(0) 编辑
摘要: Majority ElementGiven an array of sizen, find the majority element. The majority element is the element that appears more than⌊ n/2 ⌋times.You may ass... 阅读全文
posted @ 2015-06-14 07:02 轻抚离殇 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Word BreakGiven a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.... 阅读全文
posted @ 2015-06-14 06:57 轻抚离殇 阅读(211) 评论(0) 推荐(0) 编辑