Script arguments


/ Published in: Python
Save to your folder(s)

ejemplo:
python script.py algo
sys.argv[0] es script.py
sys.argv[1] es algo


Copy this code and paste it in your HTML
  1. # Primer argumento al script
  2. sys.argv[1]

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.