> 清空文件再写入>> 追加写入比如文件file.txt 内容:sampe text.echo hello > file.txt文件内容变成:helloecho hello >> file.txt文件内容变成:sample texthello