2020年3月14日

在已经有数据的表中添加自增主键

摘要: 运行下面两个sql语句即可 alter table result_1 add id int; alter table result_1 change id id int not null auto_increment primary key; 阅读全文

posted @ 2020-03-14 23:29 宥宁 阅读(781) 评论(0) 推荐(0) 编辑

调用百度接口得到相关位置的标准地理位置信息

摘要: (1)首先通过所给出的位置得到经纬度; (2)通过经纬度得到详细位置信息。 #coding=UTF-8 import json import sys import requests def getPosition(url): res = requests.get(url) json_data = j 阅读全文

posted @ 2020-03-14 23:16 宥宁 阅读(696) 评论(0) 推荐(0) 编辑

python报错UnicodeDecodeError: 'ascii' codec can't decode byte 0x?? in position 1: ordinal not in range(128),已解决

摘要: python在安装时,默认的编码是ascii,当程序中出现非ascii编码时,python的处理常常会报这样的错UnicodeDecodeError: 'ascii' codec can't decode byte 0x?? in position 1: ordinal not in range(1 阅读全文

posted @ 2020-03-14 21:10 宥宁 阅读(3256) 评论(0) 推荐(0) 编辑

导航