편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.
최신판 | 당신의 편집 | ||
3번째 줄: | 3번째 줄: | ||
*예시: http://stackoverflow.com/I-WANT-404-NOT-FOUND | *예시: http://stackoverflow.com/I-WANT-404-NOT-FOUND | ||
*파일명: polyglot-404.png | *파일명: polyglot-404.png | ||
http://cdn.sstatic.net/stackoverflow/img/polyglot-404.png | |||
==소스 코드== | |||
<source lang='python'> | |||
# define v putchar | |||
# define print(x) main(){v(4+v(v(52)-4));return 0;}/* | |||
#>+++++++4+[>++++++<-]>++++.----.++++.*/ | |||
print(202*2);exit(); | |||
#define/*>.@/exit() | |||
</source> | |||
==실행해보기== | ==실행해보기== | ||
< | <source lang='cli'> | ||
[root@zetawiki ~]# cat 404.txt | [root@zetawiki ~]# cat 404.txt | ||
# define v putchar | # define v putchar | ||
16번째 줄: | 23번째 줄: | ||
print(202*2);exit(); | print(202*2);exit(); | ||
#define/*>.@/exit() | #define/*>.@/exit() | ||
</ | </source> | ||
;Perl | |||
< | <source lang='cli'> | ||
[root@zetawiki ~]# perl 404.txt | [root@zetawiki ~]# perl 404.txt | ||
404 | 404 | ||
</ | </source> | ||
;PHP | |||
< | <source lang='cli'> | ||
[root@zetawiki ~]# php -r "`cat 404.txt`" | [root@zetawiki ~]# php -r "`cat 404.txt`" | ||
404 | 404 | ||
</ | </source> | ||
;Python | |||
< | <source lang='cli'> | ||
[root@zetawiki ~]# python 404.txt | [root@zetawiki ~]# python 404.txt | ||
404 | 404 | ||
</ | </source> | ||
;Ruby | |||
< | <source lang='cli'> | ||
[root@zetawiki ~]# ruby 404.txt | [root@zetawiki ~]# ruby 404.txt | ||
404 | 404 | ||
</ | </source> | ||
==같이 보기== | ==같이 보기== |