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 ---------…”) |
无编辑摘要 |
||
第40行: | 第40行: | ||
print(d_res) | print(d_res) | ||
rs = ucgi.ulog(d_res) | rs = ucgi.ulog(d_res) | ||
[[分类:Develop]] | |||
[[分类:Python]] |
2022年12月27日 (二) 17:58的版本
#!/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)