st = " a " strip(st) #Output : "a" ... how to remove spaces in string in python ... #If you want to remove LEADING and ENDING spaces, use str.strip(): ...
確定! 回上一頁