python读取txt

with open('./html.html', "r",encoding='utf-8')as f:
    txt =''.join( f.readlines())
f.close()

 

posted @ 2022-12-19 17:07  212的s  阅读(28)  评论(0编辑  收藏  举报