Difference between revisions of "Os.system"

From wikieduonline
Jump to navigation Jump to search
(Redirected page to Os)
Tag: New redirect
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
#redirect [[os]]
+
{{lc}}
 +
#!/usr/bin/env python3
 +
import os
 +
 +
[[os.]]system("echo 'Hello World'")
 +
 
 +
== Related ==
 +
* <code>[[provisioner "local-exec"]]</code>
 +
* [[subprocess.run]]
 +
 
 +
== See also ==
 +
* {{Python}}
 +
 
 +
[[Category:Programming]]

Latest revision as of 10:32, 8 November 2024

Advertising: