搜尋此網誌

顯示具有 Python 標籤的文章。 顯示所有文章
顯示具有 Python 標籤的文章。 顯示所有文章

2015年3月6日

Python Scientific Distribution

Anaconda
Enthought Canopy
Python(x,y)
WinPython
Pyzo
Algorete Loopy
ActivePython
SciPy
 

2014年9月14日

Python thread / threading 議題

剛接觸,搞得有點頭大
相關的議題有:

Threading by object or module
Thread 共用資料
Concurrent threads
Thread 同步
  • Lock 鎖原語,這個我們可以對全局變量互斥時使用;
  • RLock 可重入鎖,使單線程可以再次獲得已經獲得的鎖;
  • Condition 條件變量,能讓一個線程停下來,等待其他線程滿足某個「條件」;
  • Event 通用的條件變量。多個線程可以等待某個事件發生,在事件發生後,所有的線程都被激活;
  • Semaphore為等待鎖的線程提供一個類似「等候室」的結構;
  • BoundedSemaphore 與semaphore類似,但不允許超過初始值;
  • Queue:實現了多生產者(Producer)、多消費者(Consumer)的隊列,支持鎖原語,能夠在多個線程之間提供很好的同步支持。
  • Barrier-多條線程需要互相等待對方的狀況提供了一種簡單的同步
Thread timer
setDaemon
等待特定 Thread 完成任務
ThreadingPoolExecutor
Thread pool
multiprocessing

陸續再更新內容

Ref:
  • http://goo.gl/fFH7u5
  • http://goo.gl/LAtU1S 
  • http://goo.gl/zNlIVs
  •  http://goo.gl/rnIjtT

2013年2月8日

2011年10月26日

很棒的 tutorial & sample code 網站

包含 Java / Android / C# / C++ / …
陸續更新
大陸很多blog或論壇都有很豐富的資料唷,不過不見得有RSS,只能用Google大神了

Android / Java
Python
  • http://wiki.pastwind.org/home/python-cheng-shi-yu-yan

C# Design pattern:
  • http://www.dotnetfunda.com/articles/article889-design-pattern-implementation-using-csharp.aspx
  • http://www.dofactory.com/Patterns/Patterns.aspx
  • http://dotnetframework.blogspot.com/2005/03/c23design-pattern.html
  • http://en.csharp-online.net/CSharp_Design_Patterns_Made_Simple

[轉] Execute a system command / 各種語言呼叫系統命令的方法

http://rosettacode.org/wiki/Execute_a_system_command