|
SOLUTIONS
|
MATHEMATICA 内置符号
SyntaxLength
SyntaxLength["string"]
在单个 Mathematica 表达式中求出从输入字符串开始多长的字符序列在语法上是正确.
更多信息更多信息
- 如果存在语法错误,SyntaxLength 有效地返回语法错误的位置.
- 如果 SyntaxLength 返回超过字符串末尾的一个位置,它表明这个字符串从语法上是正确的,但为了对应于一个Mathematica 表达式的完整输入,它需要继续.
版本 2 的新功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
