Python pyPdf2&pyPdf multi page PDF document processing error

When a pdf file has multiple pages, it will come out to see you! The way to snicker is to directly modify the file generic.py (1) pyPdf path, which is about here:/usr/lib/python2.7/site packages/pyPdf/generic.pyif data. has_key (key): # multiple definitions of key not permitted raise ut

-Read the full text-

Python pyinstaller parameter

Description of optional parameters - Generate a program demo.exe file in the F dist folder, which is applicable to a module without multiple dependencies. py file - D default option. In addition to the main program demo.exe, many dependent files will be generated in the dist folder. It is recommended to use the - c default option, which is only valid for Windows, and the console - w is only valid for Windows, Do not use the console - p Set the import path - i Set a custom icon for the generated demo.exe file -- key followed by encryption parameters

-Read the full text-

Python string operation

1. Escape character 'single quotation mark "double quotation mark tab character newline character backslash 2. The original string is preceded by r Example:>print (r" my name is Bob ") my name is Bob>print (" my name is Bob ") my name is

-Read the full text-

Python dictionary

1. Dictionary and data type mycat={'size ':' fat ',' name ':' Vice ',' color ':' gray '} print ("The output cat name is:", mycat ['name']) print ('my cat name is'+mycat ['name ']) 2. Dictionary and list spam=['dogs',' cat ',' pig '] bacon=['pig', 'cat','d

-Read the full text-

Python List

Example of list application: 1. Print out the names of all cats at home catname=[] while True: print ("Enter the number"+str (len (catname)+1)+'cat's name'+'(or enter to end without entering):') name=input() if name=="": break catname=catname+

-Read the full text-