python helloworld
当前位置:以往代写 > Python教程 >python helloworld
2019-06-14

python helloworld

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

' a test module '

__author__ = 'test'

import sys

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

if __name__=='__main__':
    test()

标签:python

    关键字:

在线提交作业