2020
10-10
10-10
C#调用Python的URL接口的示例
VS2013的简单WInForm控件,通过WebRequest,WebResponse来访问,接收:privatevoidbtn_interface_Click(objectsender,EventArgse){stringurl="http://127.0.0.1:5000";WebRequestwRequest=WebRequest.Create(url);wRequest.Method="GET";wRequest.ContentType="text/html;charset=UTF-8";WebResponsewResponse=wRequest.GetResponse();Streamstream=wResponse.GetRe...
继续阅读 >