摘要: 小驼峰和下划线转换函数 # coding:utf-8import redef hump2underline(hunp_str): p = re.compile(r'([a-z]|\d)([A-Z])') sub = re.sub(p, r'\1_\2', hunp_str).lower() retu 阅读全文
posted @ 2019-11-16 10:55 yugb 阅读(1027) 评论(0) 推荐(0) 编辑