Created
March 23, 2016 20:32
-
-
Save diegorocha/57edc4f1e4c4104b67ee to your computer and use it in GitHub Desktop.
Script de exemplo do uso do sys.argv, inclusive com slice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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