2_Vat_service_test 源码
去做: 将VarService伪代码转换为python class VatService { double vatValue; public VatService() { this.vatValue = 0.23; } public double getGrossPriceForDefaultVat(Product product){ return getGrossPrice(product.getNetPrice(), vatValue); } public double getGrossPrice(double netPrice, double vatValue){ if(vatValue > 1){ throw Exception }
下载地址
用户评论