Skip to content

Instantly share code, notes, and snippets.

@3panda
Created April 2, 2018 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 3panda/3af1368e4e8a6fcd6ecf071594fa36cb to your computer and use it in GitHub Desktop.
Save 3panda/3af1368e4e8a6fcd6ecf071594fa36cb to your computer and use it in GitHub Desktop.

test.py

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys


def main(str):
    print(str)


if __name__ == '__main__':
    args = sys.argv
    main(args[1])
str="aaa"
python test.py $str
aaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment