这段代码哪错了


class PFun:
def init(self):
self.mPnumber = 0
self.mTnumber = 0

def fun(self, path):
self.mPnumber = int(input(‘请输入您的月工资:’))
for i in range(12):
self.Tnumber += self.mPnumber
path.write(‘{:<10.5}’.format(self.Tnumber))


def main():
datafile = ‘data.txt’
data = open(datafile, ‘w’)
a = PFun
a.fun(data)
data.close()


if __name
== ‘__main
‘:
main()

已邀请:

要回复问题请先登录注册