Closed huzuoliang closed 4 years ago
# brand_list, shop_list, cate_list = side_infos session_items = [] for lst in session_list: lst = list(map(int, lst)) + [0] session_items.extend(lst)
就类似于每个句子之间的分隔符,这样确实不是很严谨,你可以尝试更好的方法
代码已更新,去掉了那部分的逻辑