我没有重新分配open关键字,但仍然收到此错误。有任何建议或指导来纠正我的错误吗?
with tempfile.mkdtemp() as test_dir: print(test_dir)
AttributeError: __enter__
我也是python的新手,我很难理解这些概念。
python temporary-directory attributeerror contextmanager
attributeerror ×1
contextmanager ×1
python ×1
temporary-directory ×1