filmov
tv
python - How can I remove a trailing newline?
![preview_player](https://i.ytimg.com/vi/kTVgWTZ1wLM/maxresdefault.jpg)
Показать описание
#short
#python
#newline
#trailing
How can I remove the last character of a string if it is a newline?
"abc\n" -- "abc"
#python
#newline
#trailing
How can I remove the last character of a string if it is a newline?
"abc\n" -- "abc"