Python 2 --> 3: object of type 'zip' has no len()

前端 未结 5 620
忘掉有多难
忘掉有多难 2020-12-13 17:38

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)

5条回答
提交回复
热议问题