Python2转python3的那些事儿

来自linux中国网wiki
跳到导航 跳到搜索


trouble

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

python2 zip --> test_data = list(zip(test_inputs, te_d[1])) 加上list 

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

ImportError : cannot import name urlopen

ImportError : cannot import name urlopen