📜  传入 2 个数字 A 和 B.您应该创建一个包含 A 行和 B 列的列表,然后填充每个单元格 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:24.700000             🧑  作者: Mango

代码示例1
Pass in 2 numbers, A and B. You should create a list with A rows and B columns, then populate each cell
A = 2
B = 3
output = []
row = A
column = B
for num in range(0, row):
  output.append([])
  for i in range(0, column):
    output[num].append('R' + str(num) + ('C' + str(i)))
print(output)