######### File is too big, read file line by line(if file is small, we can use pandas) def get_valid_inventory(src_dir,tmp_file,des_dir): if not os.path.exists(des_dir): os.mkdir(des_dir) if os.path.exists(des_dir + tmp_file): os.remove(des_dir + tmp_file) with open(src_dir + 'tbl_inventory_5005.csv', 'r') as f: for line in f
Python异常处理实例
最新推荐文章于 2024-09-14 21:22:19 发布