python&tensorflow&pytorch

for loop

tomato13 2011. 1. 19. 18:28

def test12():

for i in range(0, 100, 15):                # i는 15씩 증가

print i


=>

0

15

30

45

60

75

90

'python&tensorflow&pytorch' 카테고리의 다른 글

collections.Counter()  (0) 2019.07.17
tuple 내부의 값은 바꿀 수 없다.  (0) 2011.01.19
global variable  (0) 2011.01.19
string comparison  (0) 2011.01.18
python list length  (0) 2011.01.18