2018年10月1日

redis自定义缓存

摘要: 1 import weakref, collections 2 import time 3 4 5 class LocalCache(): 6 notFound = object() 7 8 class Dict(dict): 9 def __del__(self): 10 pass 11 12 d 阅读全文

posted @ 2018-10-01 19:11 市外桃源 阅读(244) 评论(0) 推荐(0)

python常用标准库

摘要: 系统内建函数 1、字符串 str='这是一个字符串数据测试数据'对应 str[0]:获取str字符串中下标为0的字符。 str[3]:获取str字符串中下标为3的字符。 str[0:3]:获取到字符串中从下标为0到下标为3的字符串。 str.find():返回指定str字符串中是否存在指定的字符串数 阅读全文

posted @ 2018-10-01 13:52 市外桃源 阅读(129) 评论(0) 推荐(0)

导航