📜  将单元格输出写入文件 jupyter colab - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:22.450000             🧑  作者: Mango

代码示例1
%%capture cap --no-stderr
print_something()

with open('/path/to/capture.txt') as f:
    f.write(cap.stdout)