For example, after you double-click the HTML file in the GUI interface, you can open the file with the default browser
Does pyqt5 have such a function or method?
I don’t know if Python has a built-in solution. You can check it.
I think you can call the built-in operating system directly
open fileLet the operating system decide how to open. For example, the windows program is
explorer.exeThis program for Linux is
xdg-openAnd the Mac OS program is
For example, if you judge that the current operating system is windows, you can use: