摘要: #-*-coding:utf-8-*- #@Time :2022/4/12 16:07 #@Author:shuaichao #@File :.pywith open('static/mock/area/110100.json', 'r', encoding='GBK')as fp: # json_ 阅读全文
posted @ 2022-04-22 14:48 帅超007 阅读(54) 评论(0) 推荐(0) 编辑
摘要: import json import os import utils if __name__ == '__main__': g = os.walk(r".\static\mock\city") # 取文件,去转义字符 res = utils.get_city() list_city = [] lis 阅读全文
posted @ 2022-04-22 14:47 帅超007 阅读(37) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/no_needle/article/details/104072003 阅读全文
posted @ 2022-04-22 14:35 帅超007 阅读(89) 评论(0) 推荐(0) 编辑
摘要: json.load是解码 json.dumps是编码 如果编码两次会出现 "{\"errcode\": 1, \"msg\": [{\"id\": \"1\", \"cityid\": \"110100\", \"city\": \"\\u5317\\u4eac\\u5e02\", \"money\ 阅读全文
posted @ 2022-04-22 14:33 帅超007 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 出错背景:将本地文件通过xftp复制到服务器时出现 解决方法:文件夹的权限原因,在该文件夹所在的父文件夹下输入"chmod 777 xxx(文件夹名称)";如果还出现“operation not permitted”,就换成root用户即可 “su”,输入密码;再重新执行"chmod 777 xxx 阅读全文
posted @ 2022-04-22 14:31 帅超007 阅读(929) 评论(0) 推荐(0) 编辑