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
- pandas
- parameter group
- Inbound
- aice associate
- Stream
- Up Casting
- generic programming
- has-a
- 스트림
- Python
- 판다스
- down casting
- 자바
- 파이참
- 넘파이
- singletone
- dbeaver
- Java
- arraycopy
- identityHashCode
- extends
- access modifier
- Aice
- 엔드포인트
- pycharm
- public static final
- 파이썬
- 셔뱅
- ai능력시험
- 얕은 복사
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 |