摘要: 一:小数据池 1.python运行中的缓存: 2.目的:缓存我们字符串,整数,布尔值。在使用的时候不需要创建过多的对象 3.python 缓存数据:缓存:int, str, bool、 int: 缓存范围 -5~256 str: 1. 长度小于等于1,直接缓存 2. 长度大于1. 字符串中如果只有数 阅读全文
posted @ 2018-09-10 21:17 python传言 阅读(180) 评论(0) 推荐(0) 编辑