print(s.strip(' ').strip('123456')) # 刪除兩邊的引號 s = "'123abcd456'" print(s.strip("'")). 分割並去除空格 string = " hello , world !"
確定! 回上一頁