python open 去掉\n 去掉\ufeff

lines = open('useless.txt',encoding='UTF-8-sig').read().splitlines()

 

posted @ 2022-08-22 13:45  cup_leo  阅读(18)  评论(0编辑  收藏  举报