我正在从Python 2.7移植到Python 3.3.2.在Python 2.7中,我曾经能够做类似的事情assert(type(something) == file),但似乎在Python 3.3.2中这是错误的.我如何在Python 3.3.2中做类似的事情?
assert(type(something) == file)
python types file python-3.x
file ×1
python ×1
python-3.x ×1
types ×1