python&tensorflow&pytorch

python list length

tomato13 2011. 1. 18. 18:00

def test6():

a = []

a.append(1)

a.append(2)

print len(a)


=> 

2