解决 python3.X TypeError: write() argument must be str, not bytes
importpickleaspoutput_model_file='saved_model.pkl'withopen(output_model_file,'w')asf:p.dump(linear_regressor,f)TypeError:write()argumentmustbestr,notbytespInPython3itmakesadifferencewhetheryouopenthef