It slices the string to omit the last character, in this case a newline character: >>> 'test\n'[:-1] 'test'. Since this works even on empty ...
確定! 回上一頁