Example. Remove spaces at the beginning and at the end of the string: txt = " banana " x = txt.strip() print("of all fruits", x, "is my favorite") · Example.
確定! 回上一頁