Python 重要的字符串方法

简单例举自己常用的字符串方法,等有时间在整理更新
#
重要的常用的字符串方法 a='123{}' a.count('1') a.capitalize() a.startswith('1') a.find('1') a.format('haha') a.upper() a.lower() a.strip() a.replace() a.split()

 

posted @ 2020-10-20 12:21  sphoia  阅读(34)  评论(0)    收藏  举报