下列语句的输出是: for i in range(1, 3): for j in range(1, i + 1): print("%-4d" % (i * j), end='') print()
A. 1
B. 1 2 4
C. 1 2 4 3 6 9
D. 报错
下列语句的输出是: result = [] for i in range(1, 2): for j in range(1, i + 1): result.append(i * j) print(result)
A. [1]
B. [1, 2, 4]
C. [1, 2, 4, 3, 6, 9]
D. 报错