摘要: import time import redisr = redis.Redis(host='1.1.1.1',password='H*',port=6379,db=0,decode_responses=True) #r2 = redis.Redis(host='1.1.1.1',password=' 阅读全文
posted @ 2019-10-31 23:44 一只竹子 阅读(128) 评论(0) 推荐(0)
摘要: import hashlib# import md5 python2# s='1'## # m = hashlib.md5( s )# m = hashlib.sha224( s.encode() )# result = m.hexdigest() #获取加密后的结果# print(result)# 阅读全文
posted @ 2019-10-31 23:42 一只竹子 阅读(100) 评论(0) 推荐(0)
摘要: import xlrd book = xlrd.open_workbook(r'/Users/nhy/Desktop/中奖名单.xlsx')sheet = book.sheet_by_index(0)# sheet = book.sheet_by_name('sheet1')result = she 阅读全文
posted @ 2019-10-31 23:41 一只竹子 阅读(258) 评论(0) 推荐(0)
摘要: import redis #关系型数据库#mysql oracle sqlserver、sqlite #非关系型数据库 NoSQL# mongodb# redis 每秒钟达到10w次的读写,存在内存里面r = redis.Redis(host='1.1.1.1',password='H*',port 阅读全文
posted @ 2019-10-31 23:40 一只竹子 阅读(91) 评论(0) 推荐(0)
摘要: import pymysqlip ="1.1.1.1"user = 'j'password="123456"db='j'port=3306charset='utf8'conn = pymysql.connect(host=ip,user=user,password=password, db=db,p 阅读全文
posted @ 2019-10-31 23:39 一只竹子 阅读(115) 评论(0) 推荐(0)