[英]python command to open file in new window or module?
I've been using exec(open().read())
in python IDE on linux to run the file but I want to open it in a separate/new window or tab. I've been using
exec(open().read())
in python IDE on linux to run the file but I want to open it in a separate/new window or tab. is there a specific parameter or a different function that I could use to achieve this?是否有一个特定的参数或不同的 function 可以用来实现这一目标?
import subprocess
subprocess.Popen(["open", 'filename.extension'])
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.