这特别应用于模型中的操作语句——也就是说,开发人员写入特定模型元素中,用于指定具体行为的代码段。
This applies in particular to action statements in the models — that is, the snippets of code that developers write into certain model elements to specify detailed behavior.
正如这个示例演示的,用print语句写入数据很容易。
As this example shows, writing data is easy with the print statement.
贯穿整个系列,一直用 print 语句写入(输出)数据,它默认把表达式作为 string 写到屏幕上(或控制台窗口上)。
Throughout this series, you've written (output) data using the print statement, which by default writes the expression as a string to the screen (or console window).
应用推荐