#!/usr/bin/pythonpython
# -*- coding: UTF-8 -*-json
#filename test11.pyspa
f = open('test_file','r+b')utf-8
f.write(b"hello world")it
print (f.read())test
print(f.tell())import
f.close()sed
if f.closed == True :coding
print ("file is closed")file
else:
print ("file is not closed")
import json
path = 'test_file'
with open(r"test_file",encoding='utf-8') as f1:
x = json.load(f1)
print (x)