Use str.rstrip() to remove a trailing newline ... Call str.rstrip(chars) on a string with "\n" as chars to create a new string with the trailing newline removed.
確定! 回上一頁