python生成自制的模块

例如

def pv_f(fv,r,n):

  return fv*(1+r)**n

def pv_perpetuity(c,r):

  return c/r

 

点击File|New Window

点击File|Save

命名为fin.py

使用命令  from fin import *

就可以调用了

posted @ 2018-09-29 17:20  二师兄不讲英文  阅读(139)  评论(0编辑  收藏  举报