摘要: 服务端 from xmlrpc.server import SimpleXMLRPCServer # 调用函数 def respon_string(str): return "get string:%s" % str if __name__ == '__main__': server = Simpl 阅读全文
posted @ 2020-08-13 17:11 John-Python 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 客户端 from xmlrpc.client import ServerProxy if __name__ == '__main__': server = ServerProxy("http://localhost:9001/RPC2") # 初始化服务器 print(server.system.l 阅读全文
posted @ 2020-08-13 17:10 John-Python 阅读(629) 评论(0) 推荐(0) 编辑