def my_print1(char):
list = ['A','B','C','D','E','F']
rows = (ord(char) - 63)
rows_str = []
for row in range(0,rows):
str = ""
for i in range(0,row):
str += list[i]
for i in range(row-2,-1,-1):
str += list[i]
rows_str.append(str)
for row in range(rows-2,-1,-1):
str = ""
for i in range(0,row):
#print(list[i],end="")
str += list[i]
for i in range(row-2,-1,-1):
str += list[i]
rows_str.append(str)
for str in rows_str:
print("| %s |"%str.center(11))
my_print1("D")
02-04
4058
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-03
804
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)