摘要: Linux下安装Python3和django并配置mysql作为django默认服务器 CentOS7.3安装Python3.6 yum except KeyboardInterrupt, e: 错误 Linux系统下修改环境变量PATH路径的三种方法 CentOS上部署Django http:// 阅读全文
posted @ 2017-06-18 16:12 随便了888 阅读(142) 评论(0) 推荐(0) 编辑
摘要: from operator import itemgetter, attrgetter, methodcallerstudent_tuples = [('john', 'A', 15),('dave', 'A', 100),('jane', 'B', 12),('dave', 'B', 10),]messages = ['critical!!!', 'hurry!', 'standby', 'im... 阅读全文
posted @ 2017-06-11 09:34 随便了888 阅读(405) 评论(0) 推荐(0) 编辑
摘要: def prime(num): for i in range(2, num): if num % i == 0: # 能被1之外的任意个数整除的即为非素数,返回False,将被filter函数过滤掉 return False return Trueprint'prime: ', filter(pri 阅读全文
posted @ 2017-06-07 23:17 随便了888 阅读(8969) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-06-06 23:25 随便了888 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1链接:https://plugins.jetbrains.com/plugin/7163-emacsideas 2将其pycharm路径下:\.PyCharm2017.1\config\plugins 3在pycharm>settings>keymap>搜索acejumpchar,然后可以remo 阅读全文
posted @ 2017-05-23 16:11 随便了888 阅读(383) 评论(0) 推荐(0) 编辑
摘要: django标签 {% if/for/ifequal/ifnotequal condition %} ...{{ name|first|lower}}{# interpretation:lower the first word of name #} {% endif/endfor/endifequa 阅读全文
posted @ 2017-05-22 15:40 随便了888 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 亲测有效! http://blog.lanyus.com/archives/174.html 备注: 注册码破解链接:http://idea.lanyus.com/ 将下载的jar包放入PyCharm.exe所在路径 如D:\pycharm\pycharm2017\PyCharm 2017.1.2\ 阅读全文
posted @ 2017-05-21 18:32 随便了888 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 进入cmd界面 1、安装虚拟环境 pip install virtualenv 2、创建虚拟环境 virtualenv django_basic_venv 3、使用虚拟环境 ..\django_basic_venv\Scripts\activate 4、在虚拟环境中安装django pip inst 阅读全文
posted @ 2017-05-19 00:01 随便了888 阅读(135) 评论(0) 推荐(0) 编辑
摘要: linux环境下 pip install -U pip windows环境下 python -m pip install -U pip python -m pip install --upgrade pip 阅读全文
posted @ 2017-05-18 23:17 随便了888 阅读(5898) 评论(0) 推荐(0) 编辑
摘要: 1、安装 pip install django (下载最新版本) 检查版本 cmd 进入python环境 >>>imoport django >>>django.get_vision() OR >>>django.VERSION 2、创建项目(菜鸟教程笔记http://www.runoob.com/ 阅读全文
posted @ 2017-05-17 23:34 随便了888 阅读(185) 评论(0) 推荐(0) 编辑