Python
bdmh
多年从事软件开发工作,现在主要从事移动端应用开发
展开
-
未pip设置国内镜像
最后在命令行窗口中使用 pip install 命令安装即可。“用户名”你的用户名,比如“C:\Users\张三”原创 2023-09-19 17:33:42 · 89 阅读 · 0 评论 -
Python从http请求json数据并格式化输出
Python3.6+HTTPConnectionimport http.clientimport jsonconn = http.client.HTTPConnection("xxx.xxx.xxx",80)url = "http://xxx.xxx.xxx/xxxx"#设置header数据header = {"Charset":"UTF-8","id":"14112201008769原创 2017-04-21 15:22:12 · 7215 阅读 · 1 评论