摘要: 最近转战金额业务,用sosotest进行接口自动化,需要使用python,涉及日期时间处理的一些好用的方法封装 #获取前后n个月的日期,前一个月monthValue=-1,后一个月monthValue=1def getBeforeAfterMonthDate(dateStr, monthValue) 阅读全文
posted @ 2022-10-26 12:02 Lynne~ 阅读(827) 评论(0) 推荐(0) 编辑
摘要: 最近转战金融贷款业务,接口自动化用的sosotest,感觉挺好用,关于等额本金计算还款金额代码如下 # 前n期的installmentdef getInstallment(interestRate, tenor, loanAmt, tenorNum): if tenorNum != tenor: i 阅读全文
posted @ 2022-10-26 11:59 Lynne~ 阅读(137) 评论(0) 推荐(0) 编辑