336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
[Python 3.6] * 찍기
import sys
i = 0
k = 0
j = int(input("input: "))
while i < j :
while k <= i :
sys.stdout.write("*")
k = k + 1
i = i + 1
k = 0
sys.stdout.write("\n")
i = 0
while i < j - 1 :
while k < j - i - 1:
sys.stdout.write("*")
k = k + 1
i = i + 1
k = 0
sys.stdout.write("\n")
input: 3
*
**
***
**
*
'Programming > Python' 카테고리의 다른 글
| [Python/OpenCV] Near-Duplicate Image Detection #2 (0) | 2020.06.02 |
|---|---|
| [Python/OpenCV] Near-Duplicate Image Detection #1 (0) | 2020.06.02 |
| [Python] List 정렬 프로그램 구현 (0) | 2017.02.06 |

