Python template

来自牛奶河Wiki
阿奔讨论 | 贡献2022年12月27日 (二) 17:55的版本 (创建页面,内容为“ #!/usr/bin/python3 # -*- coding: utf-8 -*- # import upy HELP = ------------------------------------------------------------------------------ Name : pangoin - INF Purpose : ETL Author : Adam Revisions: Ver Date Author Description --------- ---------- --------------- ------------------------------------ 1.0 2020/11/15 Adam Create format: app = pet/pet2/pup/pup2 ---------…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航 跳到搜索
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
import upy
HELP = 
------------------------------------------------------------------------------
  Name     : pangoin - INF
  Purpose  : ETL
  Author   : Adam

  Revisions:
  Ver        Date        Author           Description
  ---------  ----------  ---------------  ------------------------------------
  1.0        2020/11/15  Adam             Create

format:
    app = pet/pet2/pup/pup2
------------------------------------------------------------------------------


def pangoin(d_in):
    import sys
    import usys

    d_val = {'type':'pangolin'}

    # get dict from command parameter
    d_cp_tmp = usys.cp(1, HELP)

    s_tmp = d_cp_info.get('app', ).lower()
    if not s_tmp:
        print(HELP)
        sys.exit(1)

    return d_val


if __name__ == "__main__":
    d_res = pangoin()
    print(d_res)
    rs = ucgi.ulog(d_res)