修复写json报错
							parent
							
								
									82a3b6e7ef
								
							
						
					
					
						commit
						7c0d494250
					
				
							
								
								
									
										8
									
								
								utils.py
								
								
								
								
							
							
						
						
									
										8
									
								
								utils.py
								
								
								
								
							|  | @ -28,14 +28,6 @@ def write_json_file(filename, json): | |||
|         f.write(json) | ||||
|         f.close() | ||||
| 
 | ||||
| def write_json_file(folder, filename, json): | ||||
|     if not os.path.exists(folder): | ||||
|         os.mkdir(folder) | ||||
|     f = open(folder + '/' + filename, "w") | ||||
|     f.write(json) | ||||
|     f.close() | ||||
| 
 | ||||
| 
 | ||||
| def gzip_file(_in_file): | ||||
|     with open(_in_file, 'rb') as f_in: | ||||
|         with gzip.open(_in_file + '.gz', 'wb') as f_out: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Xiaohang
						Xiaohang