
----python
HeruiPrograming
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python4.3笔记汇总(图片上不去啊)
simple_study版本3.4.3好些3.4.3默认utf-8,不用再设置了,而且各种设置,更加的规范。2.其他解释器及其环境错误异常a=0;try: a==0except: print('haha')else: print('hehe')用python当计算器//>>> 7//23>>> 7//-3原创 2016-04-09 10:21:12 · 1074 阅读 · 0 评论 -
django如何映射css,js等文件1
障碍一:url( r'^static/(?P<path>.*)$', 'django.views.static.serve',{ 'document_root': settings.STATIC_URL }), 报错:view must be a callable or a list.tuple in the case of include()解决方案:from django.views.stati原创 2017-11-06 18:28:33 · 440 阅读 · 0 评论 -
python的中文数组输出乱码问题
1-先来几组测试 测试1:在控制台上list1 = ['哈哈', 'haha']print list1for item in list1: print itemprint ','.join(list1)测试结果: [‘\xb9\xfe\xb9\xfe’, ‘haha’] 哈哈 haha 哈哈, haha 这里同时给出了在控制台的解决方式:一个一个输出就好测试2:把它展现在网原创 2017-10-30 22:28:56 · 5717 阅读 · 0 评论