Skip to content

Instantly share code, notes, and snippets.

@sublee
Created January 27, 2011 05:48
Show Gist options
  • Save sublee/798127 to your computer and use it in GitHub Desktop.
Save sublee/798127 to your computer and use it in GitHub Desktop.
A quine in Python I made at 2007
x='print"x=\'%s\'\\n%s"%(x.replace("\\\\","\\\\\\\\").replace("\'","\\\\\'"),x)'
print"x='%s'\n%s"%(x.replace("\\","\\\\").replace("'","\\'"),x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment