摘要: # from urllib import request# from urllib.parse import urlencode #把字典转换成stu_name=&%¥#¥%%¥#这种形式# url = 'http://api.nnzhp.cn/api/user/stu_info'# data = 阅读全文
posted @ 2020-06-05 18:27 刘小小liu 阅读(216) 评论(0) 推荐(0) 编辑
摘要: r = redir = redis.Redis(host = "118.24.3.40",port =6379,password = "HK139bc&*",db = 14,decode_responses=True)#db不指定时默认为0字符串类型:塞值:r.set('liujie_sesssio 阅读全文
posted @ 2020-06-05 18:23 刘小小liu 阅读(260) 评论(0) 推荐(0) 编辑
摘要: import xlwt写excel:book = xlwt.Workbook()sheet = book.add_sheet('sheet1')data = [ ["1","小花",99,100,98.5], ["2","小王",90,30.5,95], ["3","小明",67.5,49.6,88 阅读全文
posted @ 2020-06-05 18:21 刘小小liu 阅读(136) 评论(0) 推荐(0) 编辑