4 ms·
I consider this totally cheating: $ python quine.py import sys print open(sys.argv[0]).read(),
by snprbob86 16y ago
I consider this totally cheating:
$ python quine.py
import sys
print open(sys.argv[0]).read(),
- wh-uws 16y agoI couldn't do python for a long time because it made me feel guilty all the time. Sometimes writing python literally feels like taking candy from a baby
- deleted 16y ago[deleted]
- GrooveStomp 16y agoThis misses the point of a Quine. You haven't written the code to generate the string, you've used an external library that someone else wrote to do that job for you. I made this mistake the first time I tried too.
- snprbob86 16y agoOh I know, hence I called it "cheating"