python为类定义构造函数
class FileData:
def __init__(self, data, name, type):
self.bits = base64.encodestring(data)
self.name = name
self.type = type
def __init__(self, data, name, type):
self.bits = base64.encodestring(data)
self.name = name
self.type = type
其中self类似c++或者c#的this指针。
https://muzizongheng.blog.csdn.net/