资讯

Open your Python program in your editor of choice. Go to the section of your code where you want to invoke the Windows command prompt application.
Using the Windows Subsystem for Linux (WSL), you can launch Linux applications directly in a Windows 10 command prompt or PowerShell prompt.
If you're beyond basic Windows 10 customization -- and comfortable working in the Registry or the Command Prompt -- you've probably noticed that you can't run programs as an administrator by default.
This tutorial will explain how to open an Elevated Command Prompt in Windows 10. You can use this Command Prompt to type commands that will be executed with Administrative privileges.