注释掉的第二句是将缓冲区中内容全部写入文件并关闭文件的操作!所以一旦注释了 那个之前写入文件还处在打开状态,所以你新的命令能够生效。但是如果关闭了,应该就不能再打开修改了把,重新打开只会覆盖之前的!目前没看过有人这么做过。。。。文档里这么说的If you close the output file and then cause IDL to produce more output (e.g., by executing a new PLOT command), IDL will open the file again, causing the contents of the recently closed file to be lost. To avoid this, use the FILENAME keyword to specify a different file name or use SET_PLOT to disable the graphics driver, or be sure to print the closed output file before creating more output.我感觉好像是不能进行那种操作的!但是也不太确定。。。