Test.py
import sys
class Test :
def main(self):
args = sys.argv
option = args[1]
print 'Hello ' + option
edit = Test()
edit.main()
Run the jython file using:
jython Test.py World
The Result would be:
Hello World
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment