最新回答 / zz77zz
包引入出了吧 from pdfminer.pdfdevice import PDFDevicefrom pdfminer.pdfinterp import PDFPageInterpreter, PDFResourceManagerfrom pdfminer.pdfparser import PDFDocument, PDFParser# 访问显示对象from pdfminer.layout import LAParamsfrom pdfminer.converter import PDFPageAggr...
2018-05-10
最新回答 / _aiyuan_haohao
import MySQLdbdb = MySQLdb.connect("localhost","root","123456","wyj",charset='utf8')cursor = db.cursor()sql = "select * from tabtest"cursor.execute(sql)data = cursor.fetchall()读取到的数据都存在data中,只要多data进行循环就可以看到所有数据希望能帮到你
2018-04-09
最赞回答 / TOmAs4
如果你是用pycharm的话 建议你在pycharm里的File>setting>Project untitled>Project Interpreter>点击右边的+号 然后搜索PyMySQL然后点击左下角的Install 进行下载
2018-04-01