两个列表都有 3 个元素,但为什么列表大小不同?谢谢!
\n\nl1.append(1)\nl1.append(2)\nl1.append(3)\nprint\xef\xbc\x88l1.__sizeof__()\xef\xbc\x89 # the size is 72\n\nl2 = [1,2,3]\nprint\xef\xbc\x88l2.__sizeof__()\xef\xbc\x89 # the size is 64\nRun Code Online (Sandbox Code Playgroud)\n