This is an article in the process of self-study debug The notes .
May we make progress together .
Learn with little turtle Python, In learning to “ file ” When there is a code task , The content is the segmentation and extraction operation based on three dialogues between two characters . Run time error , The main error reported is not enough values to unpack (expected 2, got 1).
(role,line_spoken) = each_line.split(':',1) # Separated by question marks ,1 Stands for split
ValueError: not enough values to unpack (expected 2, got 1)
Not enough values to decompress , Expected two values , Actually got a value .
Preface Hello everyone , Welc
Catalog One 、 class 、 Object