1.读文件
with open(path_file_description) as f:
lines = f.readlines()
2.获取当前文件路径
import os
path_current = os.path.abspath(os.path.dirname(__file__))
#os.path.abspath 获取绝对路径
#os.path.dirname(os.path.dirname) 获取当前路径的父路径
3.检验某一路径是否为文件/文件是否存在
os.path.exists(path) #路径是否存在
os.path.isfile(path) #是否为文件