You can use contextmanager not as a decorator but as a function returning context manager: from contextlib import contextmanager ...
確定! 回上一頁