Skip to content

Instantly share code, notes, and snippets.

@piyonishi
Created July 22, 2013 10:21
Show Gist options
  • Save piyonishi/6052838 to your computer and use it in GitHub Desktop.
Save piyonishi/6052838 to your computer and use it in GitHub Desktop.
import sys
argvs = sys.argv
print(argvs)
# ターミナルで以下のように打つと
#python comand-line.py あ a 1
# 以下の内容が返ってくる
#['comand-line.py', 'あ', 'a', '1']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment