It seems visually quite obvious: with defaultdict you pass list once, with setdefault you create a new list with a literal [] for every line. – ...
確定! 回上一頁