operateYaml.py

import yaml
import os
import sys

from testBLL import phoneBase


def getYam(homeyaml):
try:
with open(homeyaml, encoding='utf-8') as f:
x = yaml.load(f)
print(x)
return x
except FileNotFoundError:
print(u"找不到文件")


posted @ 2019-03-30 11:00  hayabky  阅读(145)  评论(0)    收藏  举报