Difference between revisions of "Python library: subprocess"

From wikieduonline
Jump to navigation Jump to search
(Created page with " import os * {{Python}}")
 
Line 1: Line 1:
  
  
 +
 +
import subprocess as sp
 +
output = sp.getoutput('[[whoami --version]]')
 +
print (output)
  
  
Line 6: Line 10:
 
  [[import os]]
 
  [[import os]]
  
 +
== See also ==
 +
* {{Python}}
  
* {{Python}}
+
[[Category:Python]]

Revision as of 10:45, 13 October 2021

Advertising: