python 字符串按行切割

str s=xxxxx

s.split('\n')

if __name__ == '__main__':
    response = requests.get("https://video.buycar5.cn/20200809/Vqdbr9lj/2000kb/hls/index.m3u8")
    split = response.text.split('\n')
    print(split)

你可能感兴趣的:(python)