point
幻梦鸵鸟
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
itertools中groupby的学习
首先看一下昨天在codewars上遇到的一题: Unique In Order Implement the function unique_in_order which takes as argument a sequence and returns a list of items without any elements with the same value next to each othe...原创 2019-08-11 10:40:37 · 4873 阅读 · 0 评论 -
rstrip()与zfill()的学习
1.rstrip() str.rstrip([chars]) chars – 指定删除的字符(默认为空格) 返回删除 string 字符串末尾的指定字符后生成的新字符串 例子: str = "88888888this is string example....wow!!!8888888"; print str.rstrip('8'); 输出: 88888888this is string ex...原创 2019-08-12 10:32:32 · 405 阅读 · 0 评论
分享