05 2018 档案

摘要:结果: {u'code': 0, u'data': {u'city': u'\u5357\u4eac', u'area_id': u'', u'county_id': u'xx', u'region_id': u'320000', u'area': u'', u'city_id': u'320100 阅读全文
posted @ 2018-05-04 11:31 繁华博客 阅读(232) 评论(0) 推荐(0) 编辑
摘要:s = '匆匆'print(s)s1 = s.decode("utf-8") # utf-8 转成 Unicode,decode(解码)需要注明当前编码格式print(s1,type(s1))s2 = s1.encode("gbk") # unicode 转成 gbk,encode(编码)需要注明生成的编码格式print(s2,type(s2))s3 = s1.encode("utf-8") # ... 阅读全文
posted @ 2018-05-04 11:27 繁华博客 阅读(296) 评论(0) 推荐(0) 编辑
摘要:版本1.8.2 检查数据库配置是否有错 Python manage.py validate/check 创建对应书看的映射语句 Python manage.py makemigrations 同步或者映射数据库 Python manage.py syncdb 版本1.11.1 阅读全文
posted @ 2018-05-03 22:21 繁华博客 阅读(389) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示