1、 Read the file
pickle_file = open('city_file.pkl', 'rb')
list_content = pickle.load(pickle_file)
print(list_content)
2、 write file
list1 = [' Package files ',' test ']
pickle_file = open('city_file.pkl','wb')
pickle.dump(list1, pickle_file)
pickle_file.close()