a = int(input("请输入菱形行数:")) m = a #空格d = a #倒三角for i in range(1, a + 1): # 先打印正三角print(" " * (m - 1), "*" * (2 * i - 1)) ...
確定! 回上一頁