Demo entry 5531077



Submitted by dd on Jun 30, 2016 at 04:57
Language: Python. Code size: 353 Bytes.

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

' a test module '

__author__ = 'Michael Liao'

import sys

def test():
    args = sys.argv
    if len(args)==1:
        print 'Hello, world!'
    elif len(args)==2:
        print 'Hello, %s!' % args[1]
        print 'Too many arguments!'

if __name__=='__main__':

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).