a = input()
input_str = a.split()
res_type = int(input_str[0])
row = int(input_str[1])
if res_type == 1:
col = int(input_str[2])
for i in range(row):
print("*" * col)
if res_type == 2:
for i in range(row):
i = (i+1)
_str = ("A" * i).rjust(row) + " " + ("A" * i).ljust(row)
print(_str)
if res_type == 3:
flag = "A"
for i in range(row, 0, -1):
if flag == "B":
print((("B"*(i-1)) + "B" + ("B"*(i-1))).center(row*2))
flag = "A"
else:
print((("A"*(i-1))+ "A" + ("A"*(i-1))).center(row*2))
flag = "B"
解决你的问题了吗?麻烦帮点个采纳哦!