I'm following a tutorial on neural nets1
It's in Python 2.7. I'm using 3.4. This is the line that troubles me:
if test_data: n_test = len(test_data)
I get: TypeError: object of type 'zip' has no len()
.
Is there a way to rewrite it so that it works in 3.4?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…