English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
该方法合并2个字符串并返回串联的字符串。
concat(str1,str2)
str1,str2 −需要连接的2个字符串。
返回2个字符串的串联。
-module(helloworld). -import(string,[concat/2 -export([start/0]). start() -> Str1 = "This is a ", Str2 = "string", Str3 = concat(Str1,Str2), io:fwrite("~p~n",[Str3
위의 프로그램을 실행할 때, 다음과 같은 결과를 얻을 것입니다.
"This is a string"