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?
import subprocess
subprocess.Popen(["open", 'filename.extension'])
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.