Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- 파이참
- Aice
- down casting
- access modifier
- arraycopy
- Python
- extends
- 얕은 복사
- 넘파이
- Java
- Stream
- Up Casting
- generic programming
- identityHashCode
- singletone
- 자바
- 파이썬
- 스트림
- Inbound
- parameter group
- 셔뱅
- public static final
- dbeaver
- pycharm
- has-a
- 엔드포인트
- aice associate
- 판다스
- ai능력시험
- pandas
Archives
- Today
- Total
٩(๑•̀o•́๑)و
while 본문
i = 0;
while i<10:
print(i, end='/')
i += 1
====Result====
0/1/2/3/4/5/6/7/8/9/
import random
# 난수생성
print(random.random())
print(random.random())
print(random.randint(1, 6)) # 1~6사이 난수
print(random.randint(1, 6))
print('\nwhile')
i = 0
while i != 4:
i = random.randint(1,6)
print(i)
====Result====
0.1574316474055123
0.4860394373821828
4
1
while
2
6
1
2
2
5
1
4
'Python' 카테고리의 다른 글
| list (0) | 2020.09.09 |
|---|---|
| break, continue (0) | 2020.09.09 |
| for (0) | 2020.09.09 |
| if, elif, else (0) | 2020.09.09 |
| dictionary (0) | 2020.09.09 |