python--字符串操做(刪除,替換)

示例:html 替換字符串開頭和結尾處的空格 python 1. [代碼][Python]代碼     跳至 [1] [全屏預覽] view source print ? 01 # -*- coding: utf-8 -*- 02   03 #替換字符串開頭的空格 04 i=0 05 while s[i].isspace(): 06     i=i+1 07 else: 08     ss=s[0
相關文章
相關標籤/搜索