Python 文件File flush() 方法 Python 文件File Close() 方法 Python 文件File fileno() 方法 Python 文件File flush() 方法 #!/usr/bin/python # Open a file fo = open("foo.txt", "wb") print "Name of the file: ", fo.name # Here it does nothing, but you can call it with read operation. fo.flush() # Close opened file fo.close() Python 文件File Close() 方法 Python 文件File fileno() 方法