일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- classifier-free guidance
- diffusion models
- stable diffusion
- ddim
- 과제형 코딩테스트
- Generative Models
- 프로그래머스
- posco 채용
- controlNet
- Image Generation
- 포스코 코딩테스트
- 논문 리뷰
- 포스코 채용
- ip-adapter
- DDPM
- manganinja
- colorization
- dp
- 코딩테스트
- KT
- kt인적성
- Today
- Total
목록Data Analysis (36)
Paul's Grit

반복문(loop)¶ 반복되는 코드를 실행할 때 사용 while, for, break, continue list comprehension while¶ 조건에 의한 반복문 In [2]: data = 3 while data: print(data) data -= 1 print('반복문 종료') 3 2 1 반복문 종료 break: 반복을 중단할 때 사용 In [6]: count = 0 while True: count += 1 print(count) if count >= 5: break print('반복문 종료') 1 2 3 4 5 반복문 종료 In [12]: # 짝수만 출력 count = 0 while True: count += 1 if count % 2: continue # 다음 루프를 진행 if count >..

조건문(condition)¶ 특정 조건에 다라서 코드를 실행하고자 할 때 사용 if else elif if condition: # True 이면 코드 실행 code In [14]: # 조건 부분: bool 데이터 타입 이외의 데이터 타입이 오면 bool 형변환 if True: print('True이면 들여쓰기 안에 있는 코드를 실행') True이면 들여쓰기 안에 있는 코드를 실행 In [15]: if False: print('True이면 들여쓰기 안에 있는 코드를 실행') In [16]: if False: print('True이면 들여쓰기 안에 있는 코드를 실행') print('Fasle이면 들여쓰기 안에 있는 코드를 실행') Fasle이면 들여쓰기 안에 있는 코드를 실행 bool 데이터 타입 이외의 데..

PEP8 Python Ehancement Proposal 8 파이썬 코드 작성 규칙(컨벤션)(제안사항) [문서] https://peps.python.org/pep-0008/ import this The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break th..

파이썬 문법¶ 1. 주석(comment)¶ In [1]: # 주석: 앞에 #을 붙이면 파이썬 코드로 실행하지 않습니다. # ctrl + / In [2]: print(1) # print(2) print(3) 1 3 2. print() 출력 함수¶ In [3]: a = 1 b = 2 In [4]: print(a) 1 In [5]: # print 함수의 옵션 # shift + tab(only jupyter): docstring 함수에 대한 설명 print(1, 2, sep = '\t') print(b, a, b, a, b, a, sep = '\t') 12 212121 In [6]: # tab으로 자동 완성 가능 print('자동완성 기능을 잘 써주세요') print('오타를 방지할 수 있습니다') 자동완성 기..