补全缩进 def pack_using_bags(order): bags_cnt = [0] * len(bag_sizes) total_volume = 0 for i in range(order["数量"]): volume = order["长"] * order["宽"] * order["高"] #遍历订单尺寸 while volume > 0: packed = False for j
时间: 2024-03-19 20:42:53 浏览: 71
loadCNT.zip_MATlab导入cnt_cnt_cnt EEG_cnt数据_matlab 脑电
4星 · 用户满意度95%
in range(len(bag_sizes)): if bags_cnt[j] < order["数量"] and bag_sizes[j] >= volume: bags_cnt[j] += 1 total_volume += volume packed = True break if not packed: return False volume = order["长"] * order["宽"] * order["高"] - total_volume return True
阅读全文