摘要:1. pip pip install numpy 2. easy_install easy_install numpy 3. install from source 3.1 cd numpy sudo python setup.py install 3.2 cd numpy sudo pip ins
阅读全文
摘要:1. install Virtualenv sudo pip3 install virtualenv 2. create virtualenv agent, python3 -m virtualenv agent 3. active python env source agent/bin/activ
阅读全文
摘要:http://www.cnblogs.com/dkblog/archive/2011/03/25/1995755.html import socket, loggingimport select, errnologger = logging.getLogger("network-server")de
阅读全文
摘要:https://pymotw.com/3/struct/ struct — Binary Data Structures The struct module includes functions for converting between strings of bytes and native P
阅读全文
摘要:https://pymotw.com/2/multiprocessing/communication.html Communication Between Processes¶ As with threads, a common use pattern for multiple processes
阅读全文
摘要:https://www.programcreek.com/python/example/3782/select.epoll Python select.epoll Examples The following are 20 code examples for showing how to use s
阅读全文
摘要:https://docs.python.org/3/library/multiprocessing.html#programming-guidelines/ 17.2. multiprocessing — Process-based parallelism¶ Source code: Lib/mul
阅读全文
摘要:https://pymotw.com/2/multiprocessing/basics.html multiprocessing Basics¶ The simplest way to spawn a second is to instantiate a Process object with a
阅读全文
摘要:https://www.ibm.com/developerworks/aix/library/au-multiprocessing/index.html Multiprocessing with Python Learn to manage a flock of processes with Pyt
阅读全文
摘要:The Py_InitModule (Py_InitModule3) is no longer used. It is necessary to create a PyModuleDef structure instead and then pass a reference to it to PyM
阅读全文