_='_=%r;print _%%_';print _%_
这是最短的python quine,还是可以做得更好?这一项似乎对The Quine Page 上的所有条目都有了改进。 .
我不计算琐碎的“空”程序,也不计算 Terry Reedy 的提交,因为双引号是 sus(如果允许,“hello world”是 quine 吗?或“'”有关系吗?)
最佳答案
我将把它留在这里(另存为 exceptionQuine.py):
File "exceptionQuine.py", line 1
File "exceptionQuine.py", line 1
^
IndentationError: unexpected indent
关于python - 最短的 python ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6223285/