得到当前py文件的父目录绝对路径:
root = "/".join(os.path.abspath(os.path.dirname(sys.argv[0])).split("/")[:-1])+"/"