|
SOLUTIONS
|
MATHEMATICA 教程
要求输入
Mathematica 通常根据输入进行处理. 有时在写的程序中需要更多的输入,可以用 Input 和 InputString 来实现.
| Input[] | 读入一个表达式输入 |
| InputString[] | 读入一个字符串输入 |
| Input["prompt"] | 产生提示,然后读入表达式 |
| InputString["prompt"] | 产生提示,然后读入字符串 |
Input 和 InputString 的工作依赖于所用的计算机系统和 Mathematica 界面. 在文本界面中,它们等待标准的输入,用回车结束. 在笔记本界面中,在前端中出现一个"对话框"让用户输入.
一般地,Input 主要用于读入完整的 Mathematica 表达式. InputString 主要用来读入任意字符串.
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
