以下是一些使用字串除去白色空白方法的範例: 1 >>> s = "Welcome to Python\t" 2 >>> s1 = s.lstrip() 3 > ... 格式化字串可以使用圖 8.8 所列的方法,將字串加以格式化。
確定! 回上一頁