ITEM_NUM = 1683
# print(range(ITEM_NUM))
# all_items = set(range(ITEM_NUM))
# print(type(all_items)) # set
# print(all_items) # {0, 1, ..., 1682}
# set object is different to dict object
遍历字典得到的是字典的 key.
字典[key] 得到的是 key 对应的 values.
a 为用户 id 及其对应的物品列表组成的字典
a = {0: [1, 2, 3], 1: [4, 5, 6]}
for u in a:
# print(u) # return keys 0 and 1
print(a[u]) # return values of key u