Qurak

StringTake

उपलब्ध

Returns a substring of a string; a list of integers that cannot be a span is read as separate specifications

StringTake["string", n]
StringTake["string", - n]
StringTake["string", {n}]
StringTake["string", {m, n}]
StringTake["string", {spec1, spec2, …}]
StringTake[{s1, s2, …}, spec]
StringTake["Hello World!", 5] → HelloStringTake["hello", 2;;4] → ellStringTake["hello", ;;-2] → hellStringTake["abcde", {1, 5, 2}] → aceStringTake["abcde", {1, 5, 0}] → {a, abcde, }StringTake["abcde", {1, 2, 3, 4}] → StringTake::ambgsntx: Warning: interpreting list of integers as a list of sequence specifications. {a, ab, abc, abcd}StringTake["abcde", {}]

इनमें प्रयुक्त

विषय

संबंधित

सभी 6300 फ़ंक्शन · इसे किसी MCP क्लाइंट से उपयोग करें