问题来源如下: 打开/etc/crontab文件,命令如下: yule@yule-ubuntu:~$ vi /etc/crontab 显示如下内容: # /etc/crontab: system-wide crontab# Unlike any other crontab you don't have to run the `crontab'# command to install the new version when you edit this file# and files in /e…
r 以只读模式打开文件 w 以只写模式打开文件,文件若存在,首先要清空,然后(重新创建) a 以追加模式打开(从EOF开始,必要时创建新文件),把所有要写入文件的数据追加到文件的末尾,即使使用seek()指向了文件的其它地方,如果文件不存在,将自动创建. r+ 以读写方式打开文件,文件可读可写,可写到文件的任何位置 w+ 以读写模式打开,和r+不同的是,它会truncate the file first a+ 和r+不同的是,它只能写到文件末尾 rb 以二进制读写模式打开 wb…