
Python
文章平均质量分 66
zhanglizhuo
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python多进程共享全局变量
解决Python多进程变量共享问题原创 2022-10-12 10:45:57 · 4501 阅读 · 0 评论 -
Communication Between Processes
Communication Between ProcessesAs with threads, a common use pattern for multiple processes is todivide a job up among several workers to run in parallel. Effectiveuse of multiple processes usually转载 2014-12-12 14:19:13 · 195 阅读 · 0 评论 -
Code examples of Twisted
Twisted makes it easy to implement custom network applications. Here's a TCP server that echoes back everything that's written to it:from twisted.internet import protocol, reactor, endpointsclas转载 2014-12-28 11:56:56 · 142 阅读 · 0 评论 -
Using the Twisted Web Client
OverviewThis document describes how to use the HTTP client included in TwistedWeb. After reading it, you should be able to make HTTP and HTTPSrequests using Twisted Web. You will be able to specify转载 2014-12-28 12:00:54 · 217 阅读 · 0 评论 -
Asynchronous and non-Blocking I/O of Tornado
Real-time web features require a long-lived mostly-idle connection peruser. In a traditional synchronous web server, this implies devotingone thread to each user, which can be very expensive.To mini转载 2015-01-15 21:38:36 · 168 阅读 · 0 评论 -
Twisted
Twisted is an event-driven network programming framework written in Python and licensed under the MIT License.Twisted projects variously support TCP, UDP, SSL/TLS, IP multicast, Un转载 2014-12-26 19:55:03 · 212 阅读 · 0 评论 -
Python Multiprocess diff between Windows and Linux
I have a script called jobrunner.py that calls class methods in main.py. See below...# jobrunner.pyfrom multiprocessing import Processimport mainfrom main import BBOXdef _a(arg): f = main.a转载 2014-12-26 12:08:42 · 143 阅读 · 0 评论 -
Logging into SAML authenticated server using python
Basically what you have to understand is the workflow behind a SALM authentication process. Unfortunately, there is no PDF out there which seems to really provide a good help in finding out what kind转载 2015-01-16 11:37:32 · 253 阅读 · 0 评论 -
Python's SQLAlchemy and Object-Relational Mapping
A common task when programming any web service is the construction of a solid database backend. In the past, programmers would write raw SQL statements, pass them to the database engine and parse the转载 2015-01-14 14:55:08 · 155 阅读 · 0 评论 -
Execute command and capture its output with python
import subprocessp = subprocess.Popen("ls -l",shell=True,stdout=subprocess.PIPE,stderr=subprocess.STDOUT)for line in p.stdout.readlines(): print line,retval = p.wait()原创 2015-01-11 16:45:43 · 168 阅读 · 0 评论 -
Python Multiprocess diff between Windows and Linux
I have a script called jobrunner.py that calls class methods in main.py. See below...# jobrunner.pyfrom multiprocessing import Processimport mainfrom main import BBOXdef _a(arg): f = main.a转载 2014-12-26 12:04:37 · 165 阅读 · 0 评论 -
Introduction to List, Set, Tuple and Dictionary in Python
The aim of this tutorial is to show off Python’s data structures and the best way to use them. Depending on what you need from a data structure, whether it’s fast lookup, immutability, indexing, etc转载 2015-01-07 11:08:23 · 224 阅读 · 0 评论