Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

Chris Angelico rosuav at gmail.com
Sun Jul 12 19:58:36 CEST 2015


On Mon, Jul 13, 2015 at 3:54 AM, Laurent Pointal
<laurent.pointal at free.fr> wrote:
> Double \ in your string:
>         "C:\\Beautiful Soup\\ecologicalpyramid.html"
>
> Or use a raw string by prepending a r to disable escape sequences:
>         r"C:\Beautiful Soup\ecologicalpyramid.html"

Or use forward slashes:
    "C:/Beautiful Soup/ecologicalpyramid.html"

ChrisA


More information about the Python-list mailing list