安装pyyaml:pip install PyYaml. 字符串转换成字典:yaml.load(). import yaml def get_configres(filepath): ''' 获取yaml配置文件中的内容
確定! 回上一頁