meta data for this page
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
python:while [2014/11/09 17:57] moonrepeat |
python:while [2021/03/10 21:42] |
||
---|---|---|---|
줄 1: | 줄 1: | ||
- | ====== while ====== | ||
- | ===== 예제 ===== | ||
- | * 1 부터 5 까지 출력 | ||
- | * <code>>>> i = 1 | ||
- | >>> while i <= 5: | ||
- | ... print(i) | ||
- | ... i = i + 1 | ||
- | 1 | ||
- | 2 | ||
- | 3 | ||
- | 4 | ||
- | 5 | ||
- | </code> | ||
- | |||
- | ---- | ||
- | * [[Python]] | ||
- | {{tag>Python}} |