运行下列程序,输出的结果是?( )
def fun(a, n): s = 0 for i in range(1, n + 1): temp = str(a) * i s += int(temp) return s print(fun(1, 3))
3
6
12
123