202106-29 教你使用Pandas直接核算Excel中的快递费用 目录一、确定核算规则二、根据核算规则编写代码,生成核算列三、输入账单,进行核算。一、确定核算规则二、根据核算规则编写代码,生成核算列#-*-coding:utf-8-*-importpandasaspdfrommathimportceilimportosdefaccount(adress,weight):ifadress=="湖南":ifweight<=3:totel=2.5elif(weight>=3)and(weight<=5):totel=3.5+ceil((weight-3))*1... 继续阅读 >