会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
皮克皮克
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
2019年10月16日
python collections 模块 之 deque
摘要: class collections.deque(iterable[,maxlen]): 返回 由可迭代对象初始化的 从左向右的 deque 对象。 maxlen: deque 的最大长度,一旦长度超出,会在 相反方向 删除等量的 items。 append(x): 从 deque 的右边添加 app
阅读全文
posted @ 2019-10-16 16:19 皮克皮克
阅读(1109)
评论(0)
推荐(0)
编辑
python 中的 is 方法 总结
摘要: isidentifier: 判断变量名是否合法 iskeyword:是否为内置关键字
阅读全文
posted @ 2019-10-16 14:51 皮克皮克
阅读(750)
评论(0)
推荐(0)
编辑
python 中动态类的创建
摘要: 参考 collections.namedtuple 的实现 链接: https://www.cnblogs.com/BeautifulWorld/p/11647198.html
阅读全文
posted @ 2019-10-16 14:49 皮克皮克
阅读(133)
评论(0)
推荐(0)
编辑
公告