最新回答 / 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