当我运行以下代码时,我分别得到3和36作为答案.
x ="abd" print len(x) print sys.getsizeof(x)
有人可以向我解释一下它们之间有什么区别吗?
python python-2.7
python ×1
python-2.7 ×1