Use yaml.dump() to write data in YAML format to a file ... Use open(filename, mode) with mode as "w" to open a stream of filename in write mode. Call yaml.dump( ...
確定! 回上一頁