(self)
写客户端配置文件函数
写客户端配置文件函数
写客户端配置文件函数
def write(self):
        '''
        写客户端配置文件函数
        '''
        json_dump = json.dumps(self.client_config,indent=1)
        with open(self.write_path, 'w') as write_json_file:
            write_json_file.writelines(json_dump)

        print("{0}({1})\n".format(_("save json success!"), self.write_path))
def write ( self ) : json_dump = json . dumps ( self . client_config , indent = 1 ) with open ( self . write_path , 'w' ) as write_json_file : write_json_file . writelines ( json_dump ) print ( "{0}({1})\n" . format ( _ ( "save json success!" ) , self . write_path ) )