问题:
Is there a Python function that will trim whitespace (spaces and tabs) from a string? 是否有Python函数可以从字符串中修剪空白(空格和制表符)?
Example: \\t example string\\t → example string 示例: \\t example string\\t → example string
解决方案:
参考一: https://stackoom.com/question/4yPM/如何修剪空白参考二: https://oldbug.net/q/4yPM/How-do-I-trim-whitespace
来源:oschina
链接:https://my.oschina.net/u/3797416/blog/4314240