文章分类 -  Scripts/Python

Python Intro - Install Package
摘要: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 阅读全文

posted @ 2018-03-14 16:27 fanbird2008 阅读(82) 评论(0) 推荐(0)

Python Intro - VirtualEnv
摘要:1. install Virtualenv sudo pip3 install virtualenv 2. create virtualenv agent, python3 -m virtualenv agent 3. active python env source agent/bin/activ 阅读全文

posted @ 2018-03-12 16:02 fanbird2008 阅读(105) 评论(0) 推荐(0)

Python Intro - select.epoll example
摘要:http://www.cnblogs.com/dkblog/archive/2011/03/25/1995755.html import socket, loggingimport select, errnologger = logging.getLogger("network-server")de 阅读全文

posted @ 2017-09-29 13:39 fanbird2008 阅读(138) 评论(0) 推荐(0)

Python Intro - Struct
摘要:https://pymotw.com/3/struct/ struct — Binary Data Structures The struct module includes functions for converting between strings of bytes and native P 阅读全文

posted @ 2017-09-28 10:20 fanbird2008 阅读(295) 评论(0) 推荐(0)

Python Intro - Mutliprocessing Communication
摘要:https://pymotw.com/2/multiprocessing/communication.html Communication Between Processes¶ As with threads, a common use pattern for multiple processes 阅读全文

posted @ 2017-09-27 18:52 fanbird2008 阅读(106) 评论(0) 推荐(0)

Python Intro - select.epoll
摘要: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 阅读全文

posted @ 2017-09-27 18:18 fanbird2008 阅读(201) 评论(0) 推荐(0)

Python Intro - Multiprocessing Guidelines
摘要:https://docs.python.org/3/library/multiprocessing.html#programming-guidelines/ 17.2. multiprocessing — Process-based parallelism¶ Source code: Lib/mul 阅读全文

posted @ 2017-09-27 17:59 fanbird2008 阅读(265) 评论(0) 推荐(0)

Python Intro - Multiprocessing Basics
摘要:https://pymotw.com/2/multiprocessing/basics.html multiprocessing Basics¶ The simplest way to spawn a second is to instantiate a Process object with a 阅读全文

posted @ 2017-09-27 17:36 fanbird2008 阅读(106) 评论(0) 推荐(0)

Python Intro - Multiprocessing
摘要:https://www.ibm.com/developerworks/aix/library/au-multiprocessing/index.html Multiprocessing with Python Learn to manage a flock of processes with Pyt 阅读全文

posted @ 2017-09-27 17:34 fanbird2008 阅读(123) 评论(0) 推荐(0)

Python Extension Intro - Py_InitModule3 implicit declaration
摘要: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 阅读全文

posted @ 2017-09-27 14:42 fanbird2008 阅读(171) 评论(0) 推荐(0)

导航