class FileObject:
    def __init__(self,fileName):
        self.f = open("%s" % fileName,'w',encoding='utf-8')

    def content(self):
        self.message = input("请输入内容：")
        self.f.write(self.message)

    def __del__(self):
        self.f.close()
        del self.f

def begin():
    fileWay = input("请输入路径名：")
    a = FileObject(fileWay)
    a.content()

begin()
d6e42dbd1fca97c9c2e012746460e77393e86af8
class FileObject:
    <mask token>
    <mask token>

    def __del__(self):
        self.f.close()
        del self.f


<mask token>

class FileObject:

    def __init__(self, fileName):
        self.f = open('%s' % fileName, 'w', encoding='utf-8')
    <mask token>

    def __del__(self):
        self.f.close()
        del self.f


<mask token>

class FileObject:

    def __init__(self, fileName):
        self.f = open('%s' % fileName, 'w', encoding='utf-8')

    def content(self):
        self.message = input('请输入内容：')
        self.f.write(self.message)

    def __del__(self):
        self.f.close()
        del self.f


<mask token>

class FileObject:

    def __init__(self, fileName):
        self.f = open('%s' % fileName, 'w', encoding='utf-8')

    def content(self):
        self.message = input('请输入内容：')
        self.f.write(self.message)

    def __del__(self):
        self.f.close()
        del self.f


def begin():
    fileWay = input('请输入路径名：')
    a = FileObject(fileWay)
    a.content()


<mask token>

class FileObject:
    def __init__(self,fileName):
        self.f = open("%s" % fileName,'w',encoding='utf-8')

    def content(self):
        self.message = input("请输入内容：")
        self.f.write(self.message)

    def __del__(self):
        self.f.close()
        del self.f

def begin():
    fileWay = input("请输入路径名：")
    a = FileObject(fileWay)
    a.content()

begin()