原创 我的友情鏈接
51CTO博客開發
原创 python 安裝mysqldb
Why can't easy_install find MySQLdb?第一次安裝:easy_install MySQLdb失敗找不到包名,原因是名稱錯誤正確的是:pip install MySQL-python然後編譯報錯: Comma
原创 python 實現四則運算 無優先級 VS 有優先級
#!/usr/bin/env python #coding=utf-8 #實現加減乘除-無優先級,從左至右計算 def split_str(str): L = [] s_index = 0 #上次切割的索引 i
原创 冒泡法 python VS C
#!/usr/bin/env python def sortNum(numlist): numlen = len(numlist) for num1 in xrange(numlen - 1, -1, -1)
原创 分佈式任務隊列-celery
http://www.celeryproject.org/docs-and-support/
原创 yum svn+apache+ssl
# yum install httpd mod_dav_svn subversion mod_ssl
原创 C基礎:if else
else if 相匹配規則The rule is that an else goes with the most recent if unless braces indicate otherwise&& || !PrecedenceThe
原创 python 安裝mysqldb
Why can't easy_install find MySQLdb?第一次安裝:easy_install MySQLdb失敗找不到包名,原因是名稱錯誤正確的是:pip install MySQL-python然後編譯報錯: Comma
原创 svn服務端遷移
一、在原服務器備份svnadmin dump /data1/svn/project > /tmp/svn_bak二、copy備份和配置文件scp passwd.htpasswd svnaccess.conf /tmp/svn_bak 目
原创 列表推導式的好文
http://blog.chinaunix.net/uid-28631822-id-3488324.html
原创 我的友情鏈接
51CTO博客開發
原创 python 比大小---爲什麼沒有三元操作符?
c語言的三院操作符?屬於The Conditional Operator語法:expression1 ? expression2 : expression3常見:x = (y < 0) ? -y : y; max = (a > b) ? a