• 2022-06-29
    如果要绘制以下图形: * *** ***** ******* ********* *********** 下列( )选项可以完成该任务:
    A: for iline in range(7): print(f {'*'*(2*iline-1):^13} )
    B: for iline in range(7): for j in range((13-2*iline+1)//2): print(" ",end="") for k in range(2*iline-1): print("*",end="") print()
    C: for iline in range(7): str = '*'*(2*iline-1) print(str.center(13))
    D: for iline in range(7): str = '*'*(2*iline-1) print( {:^13} .format(str))