0
n, m = map(int, [1, 2])
意志得到n == 1
,m == 2
開箱錯誤拆包地圖對象
但當:
n, m, r = map(int, [1, 2]), defaultdict(list)
將提高:
ValueError: not enough values to unpack (expected 3, got 2)
這個時候,n
是<map object at ...>
,m
是defaultdict
我很困惑。