Python yaml writes empty file if dump fails

后端 未结 0 481
温柔的废话
温柔的废话 2021-01-05 01:06

I have the following snippet:

if file:
    try:
        with open(file, \'w\') as outfile:
            try:
                    


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题