You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12306/config/ticketConf.py

16 lines
281 B

7 years ago
# -*- coding: utf8 -*-
__author__ = 'MR.wen'
import os
import yaml
7 years ago
7 years ago
def _get_yaml():
"""
解析yaml
:return: s 字典
"""
path = os.path.join(os.path.dirname(__file__) + '/ticket_config.yaml')
f = open(path)
s = yaml.load(f)
f.close()
return s