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 | 31 |
Tags
- arraycopy
- dbeaver
- 얕은 복사
- Stream
- extends
- down casting
- Wrapper class
- parameter group
- 엔드포인트
- finalize
- lambda
- Inbound
- 깊은 복사
- has-a
- node.js
- 셔뱅
- 파이참
- 자바
- Up Casting
- shebang
- public static final
- identityHashCode
- singletone
- pycharm
- generic programming
- constructor
- 내부클래스
- 스트림
- access modifier
- Java
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 |