我想使用Python打印模式,但我似乎無法弄清楚我做錯了什麼。如何打印使用Python一specifc字符模式?
# The Pattern I am trying to create is as follows:
*******
******
*****
****
***
**
*
#Using the following code:
base = 8
for rows in range(base):
for columns in range(7,1,-1):
print('*',end='')
print()
變化'範圍(7,1,-1)''到範圍( 7,行,-1)' – depperm