先頭文字列
🟢 Python
投稿日: 2026年4月11日13:05
インデックスでスライスする
tel="03-1234-5678"
tel2=tel[:2]
03 となる
開始位置(先頭は省略可 0始まり):終了文字位置
VBAではLeft
VBAではLeft
No Comment
インデックスでスライスする
tel="03-1234-5678"
tel2=tel[:2]
03 となる