test_tool_3.py 168 B

123456
  1. def create_file(self, filename):
  2. with open(filename, "w+") as file:
  3. file.writelines(["line1", "line2", "line3"])
  4. file.flush()
  5. file.close()