OSError: exception: access violation writing 0x0000000000000050

OSError: exception: access violation writing 0x0000000000000050
此错误代码出现在
将获取的网页头location信息导入到model表格在tableview显示中产生

解决方法:
将获取的location信息转换成str字符格式完美解决

html=requests.get(url,allow_redirects=False)
text=str(html.headers.get('location'))   #注意将此处内容转换成str格式,不然出现"OSError: exception: access violation writing 0x000"错误

你可能感兴趣的:(python,OSError,python)