Python 字符串--分片-count()-find()-join()-split()-replace()

Python字符串html 当要访问字符串的其中一个字符的时候,只须要用索引列表或者元组的方法来索引字符串便可:python str1 = 'Hello,i\'m here' print(str1[4]) o字符串和元组同样,一旦定下来就不能直接对他们进行修改了, str1 = 'Hello,i\'m here' str1 = str1[:10] + '快来' + str1[9:] print(
相关文章
相关标签/搜索