Skip to content
本站總訪問量
本站訪客數 人次

python-新手上路-Day3-1 | 迴圈10題

請撰寫程式,輸出以下圖形。

提示:圖形的邊長是9 * 9

(1)

*........
.*.......
..*......
...*.....
....*....
.....*...
......*..
.......*.
........*

(2)

*********
*.......*
*.......*
*.......*
*.......*
*.......*
*.......*
*.......*
*********

(3)

....*....
....*....
....*....
....*....
*********
....*....
....*....
....*....
....*....

(4)

*********
*********
*********
*********
*********
.........
.........
.........
.........

(5)

*****....
*****....
*****....
*****....
*****....
.........
.........
.........
.........

(6)

........*
.......*.
......*..
.....*...
....*....
...*.....
..*......
.*.......
*........

(7)

*.*.*.*.*
.*.*.*.*.
*.*.*.*.*
.*.*.*.*.
*.*.*.*.*
.*.*.*.*.
*.*.*.*.*
.*.*.*.*.
*.*.*.*.*

(8)

*...*...*
...*...*.
..*...*..
.*...*...
*...*...*
...*...*.
..*...*..
.*...*...
*...*...*

(9)

*...*...*
.*...*...
..*...*..
...*...*.
*...*...*
.*...*...
..*...*..
...*...*.
*...*...*

(10)

*********
.********
..*******
...******
....*****
.....****
......***
.......**
........*

看答案

Contributors

The avatar of contributor named as lucashsu95 lucashsu95

Changelog