摘要: #! /usr/bin/env python # coding=utf-8 import json import urllib import pymysql con = pymysql.connect(host="10.32.81.16", user="root", passwd="abc123.com", db="fncoperation", charset='utf8',port=5366)... 阅读全文
posted @ 2017-09-07 16:30 zhang.ning 阅读(283) 评论(0) 推荐(0) 编辑
摘要: #! /usr/bin/env python #coding=utf-8 import json import urllib url = 'http://engine.dashboard.sh2.ctripcorp.com:8080/jsonp/getgroupeddatapoints?callback=jQuery19101382019256707281_1504157613070&_=150... 阅读全文
posted @ 2017-09-07 15:43 zhang.ning 阅读(180) 评论(0) 推荐(0) 编辑
摘要: #! /usr/bin/env python#coding=utf-8import jsonf = open(r'D:\test\file.txt','rb')w =f.read()f.close()jsonDic = eval(w)locations = json.loads(jsonDic)fo 阅读全文
posted @ 2017-09-07 12:44 zhang.ning 阅读(161) 评论(0) 推荐(0) 编辑