Skip to content

Instantly share code, notes, and snippets.

@orbekk
Created September 24, 2013 21:47
Show Gist options
  • Save orbekk/6691757 to your computer and use it in GitHub Desktop.
Save orbekk/6691757 to your computer and use it in GitHub Desktop.
s = r"print \"s = r\\\"\" + s + \"\\\"\"\nprint s.decode(\"string-escape\")"
print "s = r\"" + s + "\""
print s.decode("string-escape")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment