반응형
    
    
    
  [python] Merry christmas Tree
import numpy as np
x = np.arange(7,16);
y = np.arange(1,18,2);
z = np.column_stack((x[:: -1],y))
for i,j in z:
    print(' '*i+'*'*j)
for r in range(3):
    print(' '*13, ' || ')
print(' '*12, end = '\======/')    
print('')
               * 
              *** 
             ***** 
            ******* 
           ********* 
          *********** 
         ************* 
        *************** 
       ***************** 
               || 
               || 
               || 
         \======/

반응형
    
    
    
  '프로그래밍 > Python' 카테고리의 다른 글
| [python] 정렬 알고리즘 실행 시 비용 계산은 보통 실행 시간(시간 복잡도)이나 작업 횟수를 측정 (0) | 2025.01.15 | 
|---|---|
| [python] Happy New year 2025 loop (0) | 2024.12.30 | 
| [python] pair plot (1) | 2024.12.20 | 
| [python] Generate OTP using python (1) | 2024.12.13 | 
| [python] Rich is a Python library for rich text and beautiful formatting in the terminal. (0) | 2024.12.11 | 
