文字列内の単語を並べ替える文字列内の単語をアルファベット順に並べ替えたいと考えています。リストを 1 つの文字列に戻そうとして立ち往生しています。
string= "sort this sentence";
string_list = sort list(words(string )); // string_list = {"sentence", "sort", "this"};
Sorted_string = (string_list); // not sure how to create Sorted_string = "sentence sort this"
show(string, string_list, Sorted_string);自動化とスクリプト作成Re: 文字列内の単語を並べ替えるJMPでは次のことができます連結アイテム()
Names Default To Here(1);
Concat Items({"www", "jmp", "com"}, "."); //"www.jmp.com"Re: 文字列内の単語を並べ替えるおかげで正しい道に進むことができました。
string= "sort this sentence";
string_list = sort list(words(string));
sorting_string = "";
for(i=1, i<=nitems(string_list), i++,
if(i<NITEMS></NITEMS><BR />----------------<BR />Log:<BR />string = "sort this sentence";<BR />string_list = {"sentence", "sort", "this"};<BR />Sorting_string = "sentence sort this";<BR />Re: 文字列内の単語を並べ替えるこのような場合には Concat Items() を使用することをお勧めします。
Names Default To Here(1);
string = "sort this sentence";
string_list = Sort List(Words(string));
Sorted_string = Concat Items(string_list, " ");
Show(string, string_list, Sorted_string);
string = "sort this sentence";
string_list = {"sentence", "sort", "this"};
Sorted_string = "sentence sort this";Re: 文字列内の単語を並べ替える完璧! ありがとう!