Ruby
foo, bar, hoge = "foo bar hoge1 hoge2".split(" ",3)
Python
foo, bar, hoge = "foo bar hoge1 hoge2".split(" ",2)
Recommended Posts