対応しているプログラミング言語は、C++、C、D、Rill、Haskell、C#、Perl、Python、R、Ruby、PHP、Erlang、Elixir、JavaScript、CoffeeScrpt、SQL、Rust、Bash、Lua、Lazy K、Lisp、Pascal、Java、swiftも対応しています。Rも対応しているので統計解析などもこちらのサイトから不要なダウンロードなく解析が可能となっています。wandbox.org
Memoize とはキャッシュを用いて関数呼び出しを高速化する手法
・関数が同じ引数で何度も呼び出される
・関数呼び出し 1 回あたりのコストが高い (実行時間が長い)
等で使用すると効率的に関数を呼び出すことが出来る。
Output
>>
1、1、2、3、5、8、13、21、34、55、89、144、233、377…
python inputを使った文字列の入力
Output
>>
Enter your name mike
Enter your another name tarou
Hello mike and tarou
Pythonではwhile, forのループにelseを使用することが出来ます。他の言語と比較すると珍しい機能で、ありがちなケースでは「ループ処理で何かを探索して見つけたらbreakする、breakしなかったら見つからなかった」といったケースでフラグ変数を使う必要がなく処理が可能になります。
Output
>>
2
3
5
7
シンプルで直感的なソートアルゴリズム
Output
>>
[3, 3, 7, 7, 7, 7, 10]
tokenize python
Output
>>
Hi John Doe
python forとifを使った簡単なフィルター処理
Output
>>
Joeis too old!
Ruthis too old!
There are3 young people
数字型
Output
>>
99
3.14
文字列
Output
>>
Rutherford Birchard Hayas
['Rutherford', 'Birchard', 'Hayas']
Rutherford
Birchard
Hayas
Rutherford Birchard Hayas
Output
>>
yes!
リストとfor
Output
>>
HelloJohn
HelloPaul
HelloGeorge
HelloRingo
How to sort
Output
>>
34
9
18
19
22
28
This is 18years old present!
[9, 18, 19, 22, 28, 34]
pythonの辞書形式
Output
>>
Joe Postdocis not a millionaire
Show me the money!