📜  如何在python代码示例中剥离列表

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

代码示例1
list1 = ["a  ", "  b ", " c"]

[i.strip() for i in list1] # ['a', 'b', 'c']