摘要: 1、判断字符串是否以某个字符或者字符串开头: 1 >>> c="as_as_ddd_Fge_f" 2 >>> print c.startswith('f') 3 False 4 >>> print c.startswith('as') 5 True 6 >>> print c.startswith( 阅读全文
posted @ 2018-04-11 16:58 David---wei 阅读(156) 评论(0) 推荐(0) 编辑