1234567891011121314151617181920212223 |
- ## SPDX-License-Identifier: MIT
- from bjbus import *
- for i in range(1, 1000):
- routes = search_routes_exact(i)
- for r in routes:
- print(r['caption'])
- if r['direction'] == '1':
- print('上行')
- else:
- print('下行')
- print(r['lineLength']+'km')
- print(r['serviceTime'])
- stops = show_stops(r['lineId'])
- for stop in stops:
- print(stop['stopName'])
- print('')
|