📜  在字符串 python 代码示例中修剪空格

📅  最后修改于: 2022-03-11 14:46:16.351000             🧑  作者: Mango

代码示例1
a = "      yo!      "
b = a.strip() # this will remove the white spaces that are leading and trailing