运行namespace Acme\Types;
class ItemType
{
/**
* @var string
*/
public $propertyName;
}
:
Zend\Soap\Wsdl\ComplexTypeStrategy\ArrayOfTypeComplex
我想发送客户请求并接收server.py
和from flask import Flask, request, Response, json
app = Flask(__name__)
@app.route('/test', methods=['GET','POST'])
def route():
open_read = open(r'C:\log.log').read()
dict_data = {'str': str(), 'list': list(), 'dict': dict()}
return Response(json.dumps(dict_data), mimetype='text/plain')
if __name__ == '__main__':
app.run('0.0.0.0', 5000)
变量数据。
是否可以使用open_read
对象将两个变量都返回给客户端?
dict_data
flask.Response
import json, requests
response = requests.post('http://127.0.0.1:5000/test')
print '...response: %s' % response.json(), type(response.json())