Python template:修订间差异
跳到导航
跳到搜索
无编辑摘要 |
小无编辑摘要 |
||
第1行: | 第1行: | ||
Python Template Sample | |||
==== Python Template ==== | |||
#!/usr/bin/python3 | #!/usr/bin/python3 | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- |
2022年12月29日 (四) 15:42的版本
Python Template Sample
Python Template
#!/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)