python实现的简单的将字符转换成大写的tcp服务器,pythontcp,import Socke
python实现的简单的将字符转换成大写的tcp服务器,pythontcp,import Socke
import SocketServerimport netstringclass MyRequestHandler(SocketServer.BaseRequestHandler): def handle(self): print "From:", self.client_address while 1: rq = netstring.readns(self.request) print rq netstring.writens(self.request, rq.upper()) if rq.lower() == "end": breakmyServer = SocketServer.TCPServer(('', 8081), MyRequestHandler)myServer.handle_request()
相关内容
- python循环监控远程端口的代码,python端口代码,#!/usr/b
- python编写自动更换ip工具,python编写ip,#!/usr/bin/e
- python随机生成一个简单的密码代码,python生成代码,im
- python定义一个类实例作为ftp回调方法,python回调,class
- python通过Tkinter显示网络图片,,''' tk_image
- 通过python内置的timeit模块计算代码执行时间,pythontim
- Evaluate X and Y returned from the differential equation solvers usin
- python自动给数字前面补0的方法,python数字补0,python中有
- python将两个数组合并成一个数组的两种方法,python数组
- python获取当前时间的unix时间戳,pythonunix, import date
评论关闭