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"找不到文件")
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"找不到文件")