橘子味的心
标题:Python3 Fileno 方法

Python3 Fileno 方法

#!/usr/bin/python3

# Open a file
fo = open("foo.txt", "wb")
print ("Name of the file: ", fo.name)

fid = fo.fileno()
print ("File Descriptor: ", fid)

# Close opend file
fo.close()

目录

分类