UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 1264: illegal multibyte sequence
def insertdate():
f = open('C:\\Users\\pacer\\Desktop\\test.json','r+')
data = f.read()
解决方法:
f = open('C:\\Users\\pacer\\Desktop\\test.json','r+', encoding='UTF-8')