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()
简单例举自己常用的字符串方法,等有时间在整理更新
#重要的常用的字符串方法 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()