进入dos命令行下面,使用的命令是:python.exe setup.py install
json的数据读入必须是大括号作为数据段的起始标志,如果是中括号则是list类型,而小括号则不能够解析。如下图是正确的:
{
"oneway_data": "null",
"flightInfo": "null",
"desc": "192.168.20.171",
"timeStamp": "",
"invokeInterval": 1000,
"status": 1345950796925,
"priceData": "null",
"planeInfo": "null",
"op": "null",
"errorInfo": "[]",
"isTransferFlightsNeeded": true,
"isBackendBusy": false,
"SuperOTA_NUM": 2,
"isValidQuery": true,
"notWorkVendors": "null",
"validate": "null",
"serverIP": "l-tw41.f.cn1/192.168.20.171",
"results": {},
"departureAirport": "null",
"arrivalAirport": "null",
"queryID": "192.168.20.171:-3f514048:13960dac322:-a9e"
}
({
"oneway_data": "null",
"flightInfo": "null",
"desc": "192.168.20.171",
"timeStamp": "",
"invokeInterval": 1000,
"status": 1345950796925,
"priceData": "null",
"planeInfo": "null",
"op": "null",
"errorInfo": "[]",
"isTransferFlightsNeeded": true,
"isBackendBusy": false,
"SuperOTA_NUM": 2,
"isValidQuery": true,
"notWorkVendors": "null",
"validate": "null",
"serverIP": "l-tw41.f.cn1/192.168.20.171",
"results": {},
"departureAirport": "null",
"arrivalAirport": "null",
"queryID": "192.168.20.171:-3f514048:13960dac322:-a9e"
})