Commit c9795fe8 by BellCodeEditor

auto save

parent b1c458ef
Showing with 9 additions and 0 deletions
n = int(input("请输入行数: "))
for i in range(1, n + 1):
for k in range(0, abs(i - n)):
print(" ",end="")
for j in range(1, i + 1):
if j <= i and i + j <= 2 * n:
print("* ",end="")
print()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment