*为了让这两种语言写的东西对话,我花了整整两天,换了三种方法,最后终于找到了最好的方式,就是用xmlRpc。
我必须要说如果有人像两天前的我一样急于让c#和Python对话,最好不要选择ironPython*
Python
使用SimpleXMLRPCServer
class RequestHandler(SimpleXMLRPCRequestHandler):
rpc_paths = ('/RPC2',)
server = SimpleXMLRPCServer(('localhost', 8000),requestHandler=RequestHandler)
server.register_introspection_functions()
python这边是server,设定一下它的访问位置