top of page

Beginner

13

指定区切りの文字列を分割して取得

RANK

AZ_split

import sys

sys.path.append(RPR_GetResourcePath() + r"/UserPlugins")

from RIGDOCKS_python import *


s = "1,2,3,4,5,6#1,1,1,0,1,1#3,4,5,4,5,65,4,6"


a = s.split("#")

Msg(a[0])

Msg(a[1])

Msg(a[2])


b = a[0].split(",")

Msg(b)

c = a[1].split(",")

Msg(c)

d = a[2].split(",")

Msg(d)

import sys

sys.path.append(RPR_GetResourcePath() + r"/UserPlugins")

from RIGDOCKS_python import *


  • 共通関数をインポート



s = "1,2,3,4,5,6#1,1,1,0,1,1#3,4,5,4,5,65,4,6"


  • 文字列に「#」「,」を区切りとして登録


a = s.split("#")

Msg(a[0])

Msg(a[1])

Msg(a[2])


  • 「#」を区切りとして配列に分割


b = a[0].split(",")

Msg(b)

c = a[1].split(",")

Msg(c)

d = a[2].split(",")

Msg(d)


  • 「,」を区切りとして配列に分割

APIの利用にはBRONZEに

加入し専用APIを

ダウンロード

する必要があります。

準備の必要はありません


- Script Code -
- Script Image -
- Warm Up -
- Script Detail -
- API -

PYTHON

​ReaScript File Download 👇

​※実行するには専用APIが必要です

- Script Image -
bottom of page