This is because we keep opening the same file, located in the same directory, adding the two strings as files, and closing again.
这是因为一直在打开同一个目录中的同一个文件,添加两个字符串作为文件,并再次关闭。
Remember from the section on opening and closing that we need two parameters (file path name and access mode to the device) to open a device on Linux.
从有关设备打开和关闭的讲解可知,我们需要两个参数(文件路径名和设备访问模式)来打开Linux设备。
It is needed for the file opening, closing, reading, and writing functions (fopen , fclose , fgets , getc , and so on), for the printf family of functions, and for the setvbuf function.
文件的打开、关闭、读和写函数(fopen 、fclose 、fgets 、getc等等)、printf函数系列和setvbuf函数都需要它。
The Python script treats sendmail this way by opening it as if it were a text file, writing the appropriate information to it, and then "closing" it.
Python脚本就像打开文本文件一样打开sendmail,向其中写入适当的信息,然后 “关闭”它。
Sounds in response to user activity, such as a click after a keypress, a whoosh accompanying opening and closing windows, or a klunk when a file is deleted.
用声音对用户的行为作出响应,比如在按键之后的滴答声,打开或关闭一个窗口后发出的“嗖”的声音,或者是一个文件被删除后发出的沉闷的声音。
Sounds in response to user activity, such as a click after a keypress, a whoosh accompanying opening and closing windows, or a klunk when a file is deleted.
用声音对用户的行为作出响应,比如在按键之后的滴答声,打开或关闭一个窗口后发出的“嗖”的声音,或者是一个文件被删除后发出的沉闷的声音。
应用推荐