Python 文件对象属性 Python 打印屏幕 Python Close 方法 Python 文件对象属性 #!/usr/bin/python # Open a file fo = open("foo.txt", "wb") print "Name of the file: ", fo.name print "Closed or not : ", fo.closed print "Opening mode : ", fo.mode print "Softspace flag : ", fo.softspace Python 打印屏幕 Python Close 方法