36 lines
775 B
Python
36 lines
775 B
Python
import sys
|
|
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
|
|
|
|
type = 'all'
|
|
if len(sys.argv) > 1:
|
|
type = sys.argv[1]
|
|
|
|
print("输出类型" + type)
|
|
|
|
if type is not None:
|
|
if type == 'bank':
|
|
bank.do()
|
|
elif type == 'bus':
|
|
import district_bus as bus
|
|
bus.do()
|
|
elif type == 'hospital':
|
|
hospital.do()
|
|
elif type == 'school':
|
|
school.do()
|
|
elif type == 'subway':
|
|
subway.do()
|
|
elif type == 'supermarket':
|
|
supermarket.do()
|
|
else:
|
|
hospital.do()
|
|
school.do()
|
|
subway.do()
|
|
supermarket.do()
|
|
bus.do()
|
|
bank.do()
|