摘要: 1、 S.partition(sep) -> (head, sep, tail) Search for the separator sep in S, and return the part before it, the separator itself, and the part after it 阅读全文
posted @ 2016-03-11 21:39 hb91 阅读(532) 评论(0) 推荐(0) 编辑
摘要: maketrans 和 translate的用法(配合使用) 下面是python的英文用法解释 maketrans(x, y=None, z=None, /) Return a translation table usable for str.translate(). If there is onl 阅读全文
posted @ 2016-03-11 20:44 hb91 阅读(437) 评论(0) 推荐(0) 编辑
摘要: 1、S.isdecimal() -> bool Return True if there are only decimal characters in S, False otherwise. 字符串如果是十进制,返回True。 2、S.isdigit() -> bool Return True if 阅读全文
posted @ 2016-03-11 17:11 hb91 阅读(537) 评论(0) 推荐(0) 编辑