#!/usr/bin/env python import sys def main(argv): for arg in argv: print arg if __name__ == '__main__': main(sys.argv)
具体参照:http://blog.chinaunix.net/uid-20786165-id-3182268.html