Proper way to handle file open and file close Exception

前端 未结 0 1086
感情败类
感情败类 2020-11-21 13:28

Please see this implementation:

@staticmethod
    def read_json_file__(file):
        try:
            with open(file) as json_file:
                data = js         


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