python - Decode a string - Quote marks issue -
i supposed decode string below in script have made (it task webpage). in order ensure decoded word correct, can not change string in way. since quote marks affects string, parts q90:;ai not string, results in syntax error.
q0Ø:;ai"e47frbqnbg4wnb8b4lqn8erkc88u8gen?t6lanbg4gØ""n6k086hb"Ø8crhw"+ls79Ø""n29qcln5wnebs8genbg4fØ47a is there way can decode encrypted message without changing it? of getting syntax error when define string in variable.
you can surround string single quotes, since double quotes used in string already:
>>> print 'q0Ø:;ai"e47frbqnbg4wnb8b4lqn8erkc88u8gen?t6lanbg4gØ""n6k086hb"Ø8crhw"+ls79Ø""n29qcln5wnebs8genbg4fØ47a' q0Ã:;ai"e47frbqnbg4wnb8b4lqn8erkc88u8gen?t6lanbg4gÃ""n6k086hb"Ã8crhw"+ls79Ã""n29qcln5wnebs8genbg4fÃ47a >>>
Comments
Post a Comment