制約付きテキスト出力フレーム#

この例では標準出力をキャプチャして例に含めます。出力が長すぎる場合は、自動的にテキストエリアに枠が付きます。

# Code source: Óscar Nájera
# License: BSD 3 clause

print("This is a long test Output\n" * 50)
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output
This is a long test Output

1行出します

print("one line out")
one line out

スクリプトの総実行時間:(0分0.376秒)

推定メモリ使用量:176 MB

ギャラリーはSphinx-Galleryによって生成されました