Python 使用的时间复杂度是多少
a = [1]*n
对比
for i in range(n): a.append(1)
都是 O(n) 还是第一个 O(1)?
python big-o
big-o ×1
python ×1