编程输出以下图案怎么输入
-
编程输出以下图案怎么输入
```python 编程输出以下图案 方法一:使用循环嵌套打印空心正方形def print_pattern1(n): for i in range(n): for j in range(n): if i == 0 or i == n1 or j == 0 or j == n1: print("*", end=" ") else: print(" ", end=" ") print...
```python 编程输出以下图案 方法一:使用循环嵌套打印空心正方形def print_pattern1(n): for i in range(n): for j in range(n): if i == 0 or i == n1 or j == 0 or j == n1: print("*", end=" ") else: print(" ", end=" ") print...