Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在java中制作一个quine,然后让某种程序将输出识别为一个程序,然后运行它并给出一个输出,然后无限地继续这样做?我正在尝试编写一个自我复制的代码,让它无限地自我复制,从而在技术上创造生命。我想我有优越感
这是一篇可以帮助您进行初步研究的文章:
元编程 - 编写生成其他程序的程序
此 wiki 页面还可以为您提供其他信息来源。 维基
希望这对您的学习有所帮助!