Skip to content

Instantly share code, notes, and snippets.

@oilbeater
Last active February 28, 2018 11:55
Show Gist options
  • Save oilbeater/cc03ee9210e2e8af6fba to your computer and use it in GitHub Desktop.
Save oilbeater/cc03ee9210e2e8af6fba to your computer and use it in GitHub Desktop.
python
// use shell command
import subprocess
output = subprocess.check_output('dir', shell=True)
print(output)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment