|
|
|
发新文章 |
|
|
@import url(http://www.cppblog.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);
具体的内容就不贴上来了,只粘贴最关键的代码。@import url(http://www.cppblog.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);
这里是打印出来的结果:
ImmutableMultiDict([('stockCodes', u'SZ300433'), ('stockCodes', u'SZ300097'), ('stockCodes', u'SZ300006'), ('stockCodes', u'SZ300002'), ('stockCodes', u'SZ002426'), ('stockCodes', u'SZ002415'), ('stockCodes', u'SZ002325'), ('stockCodes', u'SZ002148'), ('stockCodes', u'SZ002117'), ('stockCodes', u'SZ000967'), ('stockCodes', u'SZ000965'), ('stockCodes', u'SZ000861'), ('stockCodes', u'SZ000795'), ('stockCodes', u'SZ000791'), ('stockCodes', u'SZ000592'), ('stockCodes', u'SZ000585'), ('stockCodes', u'SZ000559'), ('stockCodes', u'SZ000403'), ('stockCodes', u'SZ000301'), ('stockCodes', u'SZ000049'), ('stockCodes', u'SZ000039'), ('stockCodes', u'SZ000029'), ('stockCodes', u'SZ000009'), ('stockCodes', u'SZ000007'), ('stockCodes', u'SZ000004'), ('stockCodes', u'SZ000002'), ('stockCodes', u'SH601166'), ('stockCodes', u'SH601098'), ('stockCodes', u'SH601012'), ('stockCodes', u'SH600975'), ('stockCodes', u'SH600873'), ('stockCodes', u'SH600570'), ('stockCodes', u'SH600485'), ('stockCodes', u'SH600006'), ('stockCodes', u'SZ300032'), ('stockCodes', u'SZ002677'), ('stockCodes', u'SZ002232'), ('stockCodes', u'SZ002195'), ('stockCodes', u'SZ000939'), ('stockCodes', u'SZ000887'), ('stockCodes', u'SZ000839'), ('stockCodes', u'SZ000705'), ('stockCodes', u'SZ000538'), ('stockCodes', u'SZ000532'), ('stockCodes', u'SZ000153'), ('stockCodes', u'SZ000059'), ('stockCodes', u'SZ000028'), ('stockCodes', u'SZ000026'), ('stockCodes', u'SZ000018'), ('stockCodes', u'SZ000014'), ('stockCodes', u'SH603288'), ('stockCodes', u'SH603026'), ('stockCodes', u'SH601801'), ('stockCodes', u'SH601038'), ('stockCodes', u'SH600613'), ('stockCodes', u'SH600518'), ('stockCodes', u'SH600405'), ('stockCodes', u'SH600276'), ('stockCodes', u'SH600000')])
192.168.1.96 - - [01/Sep/2016 13:43:35] "POST /personal/stock/delete.json?page=ZiXuanEditStocksVC&version=3.3.0&device=iPhone&sys=9.3&clientName=ios&clientId=F60771ED-67CC-456E-B2F5-C0EA85AD0DFC HTTP/1.1" 200 -
这里是ios的swift代码
let httpSessionManager = AFHTTPSessionManager()
httpSessionManager.requestSerializer = AFHTTPRequestSerializer()
httpSessionManager.responseSerializer = AFJSONResponseSerializer()
httpSessionManager.requestSerializer.timeoutInterval = 120;
let markAddr = "http://192.168.1.96:5000/"
let path = NSString(format:"%@%@?page=\(self.classForCoder)", markAddr, kDeletePlateStockAPI)
httpSessionManager.attach_version_device_sys_Post(path as String, parameters: nil, constructingBodyWithBlock: { (formData:AFMultipartFormData!) in
for code in stockCodes {
formData.appendPartWithFormData(code.dataUsingEncoding(NSUTF8StringEncoding)!, name: "stockCodes")
}
}, success: {[weak self] (_, resp) in
let removingSet = NSMutableIndexSet()
paths.foreach({
removingSet.addIndex( $0.row)
})
data.removeObjectsAtIndexes(removingSet)
self?.tableView.deleteRowsAtIndexPaths(paths, withRowAnimation: .Fade)
self?.bottomBar.setupStocksBottom(withMovingNum: 0, deletingNum: 0)
}, failure: { _ in
MBProgressHUD.showWithNetworkLinkFail()
})
这里是python代码
from flask import Flask, session, redirect, url_for, escape, request, render_template
app = Flask(__name__)
@app.route('/personal/stock/delete.json', methods=['GET', 'POST'])
def getSpeed():
print(request.form)
return ""
localIP = '127.0.0.1'
if __name__ == '__main__':
app.run(host='0.0.0.0', debug=True)
|