str = "Hi my name is horizD"
arr = str.split() //default 구분자는 공백(' ')
print(arr) // ['Hi', 'my', 'name', 'is', 'horizD']
str = 'horizD'
str.split('') // ['h','o','r','i','z','D']
구분자 sep을 지정하여 문자가 저장된 배열을 합친다.
//용례1.
arr = ['h','o','r']
arr.join('') // 결과 반환값 = 'hor'
//용례2.
arr = ['a','b','c']
arr.join('구분자') // 결과 반환값 = 'a구분자b구분자c'