有多少种方法让代码输出自己?
例如,写下面的代码,
public class Test
{
public static void main(String[] args)
{
// some code
}
}
Run Code Online (Sandbox Code Playgroud)
输出自己
public class Test
{
public static void main(String[] args)
{
// some code
}
}
Run Code Online (Sandbox Code Playgroud)
(接受任何编程语言)
编辑此问题已在历史文章中找到,搜索"quine"或查看https://stackoverflow.com/search?q=quine