[英]PYTHON How to open new console and do print strings on that window in python
how to open new console and do print strings on that window in python如何打开新控制台并在 python 中的 window 上打印字符串
I want is i have a script, i want to open a new window after it gets started on that windows i want to print strings like Logs basically like the following:我想要的是我有一个脚本,我想在 windows 开始后打开一个新的 window 我想打印像 Logs 这样的字符串,基本上如下所示:
[INFO] A() is Running
[WARNING] A() Is Running SO BAD
[FINISHED] A() IS Done
WOuld be helpfull if the question is anwered如果问题被回答会有所帮助
try to write extra program for handling args to logs.尝试编写额外的程序来处理日志中的参数。 but you will need to execute new python instance from OS using cmd/bash script
但您需要使用 cmd/bash 脚本从操作系统执行新的 python 实例
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.