Ruby按照换行符进行分割

Ruby按照换行符进行分割

string.split(/\n/)

转载于:https://www.cnblogs.com/stono/p/6821382.html