📅  最后修改于: 2022-03-11 14:45:29.250000             🧑  作者: Mango
代码示例1
str1 = "\n Starbucks has the best coffee \n"
newstr = str1.strip()
or
for sub in list1:
rez.append(sub.replace("\n", ""))