opt.py 274 B

123456789101112131415
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter web
  4. name:front.py
  5. """
  6. from demeter.core import *
  7. # 测试命令行传参 python opt.py -a act
  8. param = {}
  9. param['action'] = 'a'
  10. param['name'] = 'n'
  11. param['param'] = 'p'
  12. Demeter.getopt(param)
  13. Demeter.echo(Demeter.option['action'])