这是我使用的代码
import os
import decimal
from pyPdf import PdfFileReader
path = r"E:\python\Real Python\Real Python\Course materials\Chapter 8\Practice files"
inputFileName = os.path.join(path,"Pride and Prejudice.pdf")
inputFile = PdfFileReader(file(inputFileName,"rb"))
print "Number of pages:", inputFile.getNumPages()
print "Title:", inputFile.getDocumentInfo().title
现在,当我运行这段代码时,我得到一个错误: “object”模块没有“Number”属性
我把我得到的全部输出截图 当我运行上面的代码时,有错误和一切。 所以,请你看看,告诉我怎么了?在
这是所有不被3整除到50的数字的打印输出。它可能在
sys.path
上的numbers
模块中,它隐藏了标准库numbers
。查看位置:相关问题 更多 >
编程相关推荐