学习《集体智慧编程》时引用了一句 from pysqlite2 import dbapi2 as sqlite
在调试时报错:No module named pysqlite2
是因为Python2.7带的是sqlite3库
所以只要将这句话改成 import sqlite3就可以了
学习《集体智慧编程》时引用了一句 from pysqlite2 import dbapi2 as sqlite
在调试时报错:No module named pysqlite2
是因为Python2.7带的是sqlite3库
所以只要将这句话改成 import sqlite3就可以了