Python , 一个简单的单线程的C/S模型示例
代码来自Foundations of python network programmingpython 版本2.7launcelot.py# !/usr/bin/env pythonimport socket,sysPORT = 1060qa = (("What is your name?","My name is Sir Lanucelot of Camelot."), ("what is your request?","To seek the Ho...