Difference between revisions of "Python library: subprocess"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
 
  [[import]] subprocess as sp
 
  [[import]] subprocess as sp
 
  output = sp.getoutput('[[whoami --version]]')
 
  output = sp.getoutput('[[whoami --version]]')
  print (output)
+
  [[print]] (output)
  
  

Revision as of 11:26, 7 March 2022

Advertising: