Created
October 1, 2016 21:41
-
-
Save Faheetah/b89a2b31555d529cb02a6b5e403dea80 to your computer and use it in GitHub Desktop.
Pointless self replicating Python script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contents = '''contents = {0}{0}{0}{1}{0}{0}{0} | |
contents = contents.format('\{0}',contents) | |
with open("pointless.py", "w") as f: | |
f.write(contents) | |
''' | |
contents = contents.format('\'',contents) | |
with open("pointless.py", "w") as f: | |
f.write(contents) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment