📅  最后修改于: 2022-03-11 14:45:20.893000             🧑  作者: Mango
# In python3, file objects are part of the io module.
>>> from io import IOBase
>>> f = open(, 'w')
>>> isinstance(f, IOBase)
True
>>> isinstance(object(), IOBase)
False