Langbox 테스트

1 프로퍼티[ | ]

1.1 none[ | ]

print('hello world 2020-09-19')

1.2 run[ | ]

print('python run')

1.3 run once[ | ]

print('python run once')

1.4 fold[ | ]

print('python fold')

1.5 fold once[ | ]

print('python fold once')

2 예외[ | ]

2.1 dup[ | ]

import time
print( time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime()) )
import time
print( time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime()) )
import time
print( time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime()) )

2.2 error[ | ]

print('hello')
import myspecialmodule
print('world')

2.3 output limit reached[ | ]

for i in range(20):
  print(i, 'hello'*100)
for i in range(500):
  print(i, 'hello')

2.4 timeout[ | ]

echo hello
sleep 30
echo world

2.5 empty[ | ]

2.6 1[ | ]

1
1

3 언어별[ | ]

3.1 Bash[ | ]

whoami
date +%Y-%m-%d\ %H:%M:%S
sudo whoami

3.2 C[ | ]

#include <stdio.h>
#include <stdlib.h>
int main() {
    system("whoami");
    system("date +%Y-%m-%d\\ %H:%M:%S");
}
#include <stdio.h>
#include <stdlib.h>
int main() {
    system("sudo whoami");
}

3.3 PHP[ | ]

passthru("whoami");
passthru("date +%Y-%m-%d\\ %H:%M:%S");
<?php
passthru("whoami");
passthru("date +%Y-%m-%d\\ %H:%M:%S");
<?php
passthru("sudo whoami");

3.4 Python[ | ]

import os
os.system("whoami") 
os.system("date +%Y-%m-%d\\ %H:%M:%S")
import os
os.system("sudo whoami")
import matplotlib.pyplot as plt
x = ['Jan','Feb','Mar','Thr','Fri','Sat','Sun']
sales = [314,159,265,358,979,323,846]
plt.bar(x, sales)
plt.show()
import matplotlib.pyplot as plt
x = ['Jan','Feb','Mar','Thr','Fri','Sat','Sun']
sales = [314,159,265,358,979,323,846]
plt.bar(x, sales)
plt.show()
plt.plot(x, sales)
plt.show()

3.5 R[ | ]

system("whoami")
system("date +%Y-%m-%d\\ %H:%M:%S")
system("sudo whoami")
cat("hello")
plot(rnorm(100))
cat("hello")
plot(rnorm(100))
hist(rnorm(100))
options(echo=T)
cat("hello")
hist(rnorm(100))
cat("hello")

3.6 BF[ | ]

++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}