join メソッド

🟢 Python
投稿日: 2026年4月11日13:20
arr=["03", "1234", "5678"]

x="-".join(arr)

03-1234-5678

(区切り文字のメソッド)
VBAでは join関数

dim arr
dim str as string
arr=Array("03", "1234", "5678")
str=Join(arr,"-")

strは 03-1234-5678
No Comment