What is the Python equivalent of Perl's chomp function, which removes the last character of a string if it is a newline? f 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交