相关疑难解决方法(0)

Python 3.3.2检查该对象是否为文件类型

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

python types file python-3.x

12
推荐指数
1
解决办法
8390
查看次数

标签 统计

file ×1

python ×1

python-3.x ×1

types ×1