tmpFile","w")f.print"TEST\n"f.closeendprintpwdendendend Pipe/etc/printcapintoafile 在这个例子中,我们将读取由cupsd生成的操作系统文件