Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

Post Timeline

Commonmark migration
Source Link

You would use the os module system method.

You just put in the string form of the command, the return value is the windows enrivonment variable COMSPEC

For example:

os.system('python') opens up the windows command prompt and runs the python interpreter

![os.system('python') example][1] [1]: https://i.sstatic.net/DRSoh.pngos.system('python') example

You would use the os module system method.

You just put in the string form of the command, the return value is the windows enrivonment variable COMSPEC

For example:

os.system('python') opens up the windows command prompt and runs the python interpreter

![os.system('python') example][1] [1]: https://i.sstatic.net/DRSoh.png

You would use the os module system method.

You just put in the string form of the command, the return value is the windows enrivonment variable COMSPEC

For example:

os.system('python') opens up the windows command prompt and runs the python interpreter

os.system('python') example

added 62 characters in body
Source Link
Timidger
  • 1.2k
  • 12
  • 16

You would use the os module system method.

You just put in the string form of the command, the return value is the windows enrivonment variable COMSPEC

For example:

os.system('python') opens up the windows command prompt and runs the python interpreter

![os.system('python') example][1] [1]: https://i.sstatic.net/DRSoh.png

You would use the os module system method.

You just put in the string form of the command

For example:

os.system('python') opens up the windows command prompt and runs the python interpreter

![os.system('python') example][1] [1]: https://i.sstatic.net/DRSoh.png

You would use the os module system method.

You just put in the string form of the command, the return value is the windows enrivonment variable COMSPEC

For example:

os.system('python') opens up the windows command prompt and runs the python interpreter

![os.system('python') example][1] [1]: https://i.sstatic.net/DRSoh.png

Source Link
Timidger
  • 1.2k
  • 12
  • 16

You would use the os module system method.

You just put in the string form of the command

For example:

os.system('python') opens up the windows command prompt and runs the python interpreter

![os.system('python') example][1] [1]: https://i.sstatic.net/DRSoh.png

default

AltStyle によって変換されたページ (->オリジナル) /