import sys type = 'all' if len(sys.argv) > 1: type = sys.argv[1] print("输出类型" + type) if type is not None: if type == 'bank': import district_bank as bank bank elif type == 'bus': import district_bus as bus bus elif type == 'hospital': import district_hospital as hospital hospital elif type == 'school': import district_school as school school elif type == 'subway': import district_subway as subway subway elif type == 'supermarket': import district_supermarket as supermarket supermarket else: import district_bank as bank import district_bus as bus import district_hospital as hospital import district_school as school import district_subway as subway import district_supermarket as supermarket bank bus hospital school subway supermarket