def put_text ( self , key , text ) : with open ( key , "w" ) as fh : fh . write ( text )
insert a key to file in python
Put the text into the storage associated with the key .
def put_text(self, key, text):
        """Put the text into the storage associated with the key."""
        with open(key, "w") as fh:
            fh.write(text)