# #地址.csv 中仅有一列 地址名称 # # # import json import pandas as pd import time if __name__ == "__main__": t0 = time.time() bus_name = [] path_str = '' path = {} # 读取当前目录下的公交线路.txt文档,获取公交线路名 with open("地址.csv", "r") as f: bus_name = f.readlines() print(bus_name) bus_name = bus_name[0].split(",")