pip install ruamel.yaml ... from ruamel.yaml import YAML ... you first need to open the file yourself, and then pass the file object to the yaml example :
確定! 回上一頁