给定如下Python函数代码:
def func(n): sum = 0 for i in range(n): for j in range(i): sum += j
O(1)
O(n)
O(n²)
O(logn)