html rendering question
Sean 'Shaleh' Perry
shalehperry at home.com
Fri Nov 16 22:32:20 EST 2001
On 16-Nov-2001 Mark Hatherly wrote:
> Hi, in my html variable 'playerhtml' I am trying to set the width attribute
> of a table to width="80%". However, my call to that variable results in the
> interpreter not recognizing what it sees as %". Is there a way setting my
> table to 80% of the browsr window without taking away the double quotes?
>
if you place a 'r' before a string, python does not look at the contents at all.
so
width = r"80%"
or even
thing = r"\\\\\\\\" # you get 8 backslashes
More information about the Python-list
mailing list