The next step is to run Listing 8, again from the user 1 session.
下一步是运行清单8,这次仍然将在用户1会话中运行。
The task is to classify each item as either rated or not rated by the user (1 or 0 respectively).
这个任务是,分辨每个条目是否被该用户打分(分别用1或者0表示)。
The application parses the information and displays it to the user (Figure 1).
应用程序分析该信息,然后将其显示给用户(图1)。
If you want to get some input from the user, my God I don't want to have to program it to low level zero and 1 just to get keys from the keyboard; please let there have been someone who does that for me and indeed there are an increasingly sophisticated options that you can pull off the shelf.
如果你想获得一些用户的输入数据,我的上帝,我可不希望在键盘上敲入0,1的低水平方式来编程;,希望有个人能帮我做这件事吧,但是现有的选择,也变得日益复杂了。
So the take away is that if the user actually gives me two or three or four or whatever, this is this expression "is n less than 1" is going to evaluate to false if it's actually two or three or four or whatever.
所以先不管用户实际上给我,3,4还是其他数,这个表达式,“是否n小于1“将被评估为错误的,如果输入额是2,3,4或其它的数。
应用推荐