📜  python 从字符串中剥离换行符 - Python 代码示例

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

代码示例3
mylist = []
# Assuming that you have loaded data into a lines variable. 
for line in lines:
    mylist.append(line.strip().split('\t')