Skip to content

Instantly share code, notes, and snippets.

@diegorocha
Created March 23, 2016 20:32
Show Gist options
  • Save diegorocha/57edc4f1e4c4104b67ee to your computer and use it in GitHub Desktop.
Save diegorocha/57edc4f1e4c4104b67ee to your computer and use it in GitHub Desktop.
Script de exemplo do uso do sys.argv, inclusive com slice
#!/usr/bin/env python
import sys
print sys.argv #Todos os argumentos
print sys.argv[2:] #Do item 2 até o final
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment