2020年6月23日
摘要: 前端开发调试的时候,通常是localhost,而接口不在本机,会有跨域问题。通过http.server 实现的请求代理,解决了跨域问题并且实现登录。 class MyRequestHandler(SimpleHTTPRequestHandler): def addHeader(self): self 阅读全文
posted @ 2020-06-23 11:50 二豆 阅读(1138) 评论(0) 推荐(0) 编辑
摘要: ls /usr/bin/python* sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 sudo update-alternatives --install /usr/bin/python 阅读全文
posted @ 2020-06-23 11:30 二豆 阅读(213) 评论(0) 推荐(0) 编辑