Hi all,
I am a newbie of python, and reading 'python essential reference'.
Now I want to print this results
'a is %d' % a -> a is 42
>
with the code
a = 42
> test = "'a is %d' % a"
> print( '%20s ->' % test, test)
>
but what I get is
> 'a is %d' % a -> 'a is %d' % a
>
What is the
Oh, I see! It's a little stupid question :)
Thanks,Alan!
On 6/6/11, Alan Gauld wrote:
> "Ryan Wu" wrote
>
>> I am a newbie of python, and reading 'python essential reference'.
>>
>> Now I want to print this results
>> 'a is %d'