7.1 files grammer open a file: \n: new line character 注:a text file has newlines at the end of each line Processing files grammer count lines 文件名.read():读出文件中有多少个字节 文件也可以用函数startswith()进行查找: 如果文件每一行之间都有空格怎么处理:相当于在右边去除空格 用continue skip(语法:not的运用) 用in来搜索每一行: 通过输入不同文件名称进行搜索: 利用try来纠错: