python直接获取文件的内容

        with open(path, 'r', encoding='utf-8') as file:
            message = file.read()

  

posted @ 2020-03-26 16:15  君子依依  阅读(1339)  评论(0编辑  收藏  举报