如何取出一段字符串中的数字? - 芝麻问答
http://www.zhimaq.com/questions/2678/
a = "wordwordword23wordword"
import re
b=re.findall('[0-9]+',a)
公告版位
新版Blog peichengnote
目前分類:python (64)
- Jul 22 Fri 2011 15:04
[python]從一段字取出數字
- Jul 19 Tue 2011 13:48
python 與 linked list 鏈表 的速度問題
[zz]为什么python标准库没有实现链表
http://blog.est.im/archives/3804
由第1篇文章講到,其實linked list是個不符合現代,記憶體存放的一種規劃。
我在大學時其實也只有在資料結構,課堂上用紙筆畫過而已。
(大學時期是寫java ,所以沒有碰到實際的碰到語言底層的問題。說是憾事,倒不如說單純培養了怎麼寫程式的邏輯思考吧。)
後來,用了Python才在想說,怎麼有時候我自己寫的C code比,python慢呢?
修過OS 作業系統的人大概都知道locality的重要性,
- Jun 28 Tue 2011 18:27
Good python article
Good python article
CafePy.com - Something Completely Different
http://www.cafepy.com/
Something completely different? Not really. Just a few articles about Python.
Python Types and Objects | 41 comments | Dec 05, 2009 |
Python Attributes and Methods | 14 comments | Dec 05, 2009 |
Be Pythonic | 1 comments | Nov 20, 2009 |
- Jun 26 Sun 2011 00:33
[python]own easy_install your python version
洛阳铲的日志 : 让easy_install构造自己的py thon小天地
http://www.lyc.name/%E8%AE%A9easy_install%E6%9E%84%E9%80%A0%E8%87%AA%E5%B7%B1%E7%9A%84py-thon%E5%B0%8F%E5%A4%A9%E5%9C%B0.html
之前一直沒有root的機器上除了setup.py安裝法外,
一直想用esay_install。