天行健,君子以自强不息!
发布时间:2014-07-16 11:47:33
升级python版本后,运行yum# yum -y install openssl提示如下:There was a problem importing one of the Python modulesrequired to run yum. The error leading to this problem was: No module named yumPlease install a package which provides this module, orverify that the module is instal.........【阅读全文】
发布时间:2014-07-15 14:41:06
一、smtplib 模块smtplib 模块提供了一个 Simple Mail Transfer Protocol (SMTP , 简单邮件传输协议)客户端实现。该协议用于通过 Unix 邮件服务器发送邮件, 示例如下:#!/usr/bin/python# Filename: smtplib-example.py# -*- coding: utf-8 -*-# import moduleimport smtplibfrom email.MIMEText import MIMEText.........【阅读全文】
发布时间:2014-04-15 11:51:04
#include<unistd.h>#include<sys/time.h>#include<stdio.h>#include<stdlib.h>#include<signal.h>#include<string.h> main(int argc,char * args[]){ long start_sec,end_sec,start_usec,end_usec; struct timeval tv; double duration; gettimeofda.........【阅读全文】
发布时间:2014-03-21 22:03:48
一、 安装1. autoconf# wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz # tar -zxvf autoconf-2.69.tar.gz # cd autoconf-2.69# ./configure# make; make install2. automake# wget http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz# tar -zxvf automake-1.14.tar.gz # cd au.........【阅读全文】
发布时间:2014-01-10 15:18:42
c++中静态成员变量要在类外部再定义,否则产生link2001错误.class testClass{ public: static int m_i;};// 类外部定义,若不写会产生// error LNK2001: unresolved external symbol "public: static int testClass::m_i" (?m_i@testClass@@2HA)int testClass::m_i;int main(int argc, char* argv[].........【阅读全文】