“./”:代表目前所在的目录 “. ./”:代表上一层目录 “/”:代表根目录 二、案例: 在读取文件时,路径的写法有如下方式 1、文件在当前目录 以图像文件为例,当前项目文件为中心 “./example.jpg” 或 “example.jpg” 2、文件在上层目录 (1)在上层目录下 “../example.jpg” (2)在上层目录下的一个Image文件夹下 “../Image/example.jpg” (3)在上上层目录下 “../../example.jpg” 3、文件在下一层目录 “./Image/example.jpg”