string - Python Base64 print problem -


I have a base 64 encoded string

When I decode the string like this: < / P> <> & gt; & Gt; & Gt; Base base & gt; & Gt; & Gt; Base64.b64decode ("XH13fXM =" '\\} w} s'

The output is OK.

But when I use it like this:

  & gt; & Gt; & Gt; D = base64.b64decode ("XH13fXM =")> and gt; & Gt;   

Some characters are missing

Can anyone give advice?

Thanks advanced.

This is a matter of presentation:

  & gt; ; & Gt; & Gt; '\\} w} s' '\\} w} s' & gt; & Gt; & Gt; Print (_, lane)}}} 5  

This string has 5 characters. When you use it in code, you need to avoid backslash, or use raw string literals:

  & gt; & Gt; & Gt; R '\} w} s' '\\} w} s' & gt; & Gt; & Gt; R '\} w} s' == '\\} w} s' true  

Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -