1 快捷键
Shift
+Enter
:运行当前 cell,并移动到下一个 cellCtrl
+Enter
:运行当前 cell
纸上得来终觉浅,绝知此事要躬行
We will focus on combining text drawing in the canvas with timers to build a simple digital stopwatch that keeps track of the time in tenths of a second. The stopwatch should contain “Start”, “Stop” and “Reset” buttons.
One of the simplest two-player games is “Guess the number”. The first player thinks of a secret number in some known range while the second player attempts to guess the number. After each guess, the first player answers either “Higher”, “Lower” or “Correct!” depending on whether the secret number is higher, lower or equal to the guess. In this project, you will build a simple interactive program in Python where the computer will take the role of the first player while you play as the second player.
hadoop-1.1.2
下 7 个 jar 包导入,如下图所示:命令形式:hadoop fs 具体操作
例:
查看目录下的文件:hadoop fs -ls 目录
1 | [root@hadoop ~]# hadoop fs -ls / 查看根目录下的数据 |
查看目录下的文件:hadoop fs -lsr 目录
在 eclipse 中新建 Java Project(笔者将 Project 简单粗暴的命名为“Hadoop”),将文件hadoop-1.1.2
的\src
文件夹下的文件夹\core
、\hdfs
、\mapred
复制到新建的 Java Project 的\src
下
但是此时 Project 的目录结构是不对的,并且缺少 jar 包
右键 Project 名称,打开 Properties 选项卡,选择“Java Build Path”,选择“Source”,将下面的“Hadoop/src”整个 Remove,然后 Add Folder,添加Hadoop
下的src
下的core
、hdfs
、mapred
,然后 OK