摘要: import xlwt# book = xlwt.Workbook() # 新建一个excel# sheet = book.add_sheet('sheet1') # 添加一个sheet页# sheet.write(0, 0, '姓名')# sheet.write(0, 1, '性别')# shee 阅读全文
posted @ 2018-02-02 22:23 王思磊 阅读(125) 评论(0) 推荐(0)
摘要: # import urllib.request# import jsonimport requests# url = 'http://api.nnzhp.cn/api/user/stu_info?stu_name=ybq123'# res = urllib.request.urlopen(url) 阅读全文
posted @ 2018-02-02 22:22 王思磊 阅读(114) 评论(0) 推荐(0)
摘要: import pymysqlconn = pymysql.connect(host='211.149.218.16', user='jxz', password='123456', db='jxz', port=3306, charset='utf8')cur = conn.cursor(curso 阅读全文
posted @ 2018-02-02 22:21 王思磊 阅读(295) 评论(0) 推荐(0)