python - 如何获取所有准备好的打印内容的字符串
问题描述
我想在 python 中获取所有当前打印的东西的字符串,如下所示
print("hello world")
print("Hello")
currentlyPrintedThings = getCurrentlyPrintedThings()
print(currentlyPrintedThings")
"hello world"
"hello"
谢谢
解决方案
推荐阅读
- swagger - 为什么在 Swagger Editor 中生成 Java 客户端失败?
- flutter - 寻找 Flutter 的 .toImage() 方法的同步替代方案
- ios - 如何在视频中定位 CALayer?
- python - 获取 None.org.apache.spark.sql.execution.python.UserDefinedPythonFunction
- python - 将单元格值从 xlsx 导入到所有行的 python 变量
- mysql - 是否可以仅将 SMT(单消息转换)应用于来自指定主题的消息
- django - 我如何将模型字段与属于他的特定信息联系起来?
- c++ - 使用 FreeBSD 作为远程主机的 CLion 完全远程模式
- c# - 如何使用 Roslyn 在 C# 中忽略 Property Getter 和 Setter
- python - 无法添加到 lambda Python 3.6