Exception happened during processing of request from ('127.0.0.1', 65066)
Traceback (most recent call last):
File "C:\Python27\lib\SocketServer.py", line 284, in _handle_request_nobloc
self.process_request(request, client_address)
File "C:\Python27\lib\SocketServer.py", line 545, in process_request
pid = os.fork()
AttributeError: 'module' object has no attribute 'fork'
原因:
`os.fork` isn't available on Windows.
由於Python是跨平台的,自然也應該提供一個跨平台的多進程支持。multiprocessing模塊就是跨平台版本的多進程模塊。