简体   繁体   English

PYTHON 如何打开新控制台并在 python 中的 window 上打印字符串

[英]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.

相关问题 Python打开一个新的.txt文件,保存,然后将文件路径打印到控制台 - Python open a new .txt file, save it, and then print the file path to the console 如何打开一个新的控制台并运行一个python脚本 - How to open a new console and run a python script 如何在webdriver(Python)中打开一个新窗口或选项卡? - How to open a new window or tab in webdriver (Python)? 如何在vscode的新window中打开python调试器? - How to open the python debugger in a new window in vscode? 如何在python中单击按钮打开新窗口? - How to open a new window with a button click in python? 如何在Python PAMIE中打开新窗口 - How to open a New window in Python PAMIE 如何用 selenium python 打开一个新的 window - how to open a new window with selenium python Python-如何测试字符串之间的相似性并仅打印新字符串? - Python - How to test similarity between strings and only print new strings? python程序终止后,如何保持控制台窗口打开以查看产生的任何错误? - How do I keep a console window open after my python program terminates to see any errors produced? 如何在python中编辑url并打开新页面而不打开新窗口或标签? - How do I edit the url in python and open a new page without having a new window or tab opened?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM