Is this a valid question?

def start(fileName):
  fileReader = open(fileName)
  for row in fileReader:
    print row,

if __name__ == "__main__":
  import sys
  if len(sys.argv) <= 1:
    print "usage quine /path/to/file"
    sys.exit(-1)
  fileName = sys.argv[0]
  start(fileName)

python quine.py foo

+3
source share
2 answers

No, quine should not accept any data:

Queen does not accept any data. Permissive input allows the source code to be fed into the program from the keyboard, opening the source file of the program and similar mechanisms.

From Quine (calculation) .

UPDATE

quine. Quine : , , . , . ; , quine , .

+9

Quines , . , " , ".

: : Quine ()

+2

Source: https://habr.com/ru/post/1750162/


All Articles