2018-01-07 01:54:36 +00:00
|
|
|
# -*- coding: utf8 -*-
|
|
|
|
__author__ = 'MR.wen'
|
|
|
|
|
|
|
|
import os
|
|
|
|
import yaml
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
# def get_set_info():
|
|
|
|
# return _get_yaml()["set"]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# def get_ticke_peoples():
|
|
|
|
# return _get_yaml()["ticke_peoples"]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# def get_damatu():
|
|
|
|
# return _get_yaml()["damatu"]
|
|
|
|
#
|
|
|
|
#
|
2018-01-09 05:40:27 +00:00
|
|
|
# print _get_yaml()["set"]["12306count"][1]["pwd"]
|