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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -