Loading

05 2019 档案

摘要:Thanks to the Python data model, your user-defined types can behave as naturally as the built-in types. And this can be accomplished without inheritan 阅读全文
posted @ 2019-05-29 19:34 LB477 阅读(210) 评论(0) 推荐(0)
摘要:1. Variables Are Not Boxes 2. Identity, Equality, and Aliases 3. Copies Are Shallow by Default [Notes]: You can control the behavior of both copy and 阅读全文
posted @ 2019-05-27 10:57 LB477 阅读(184) 评论(0) 推荐(0)
摘要:1. Generic Mapping Types The collections.abc module provides the Mapping and MutableMapping ABCs to formalize the interfaces of dict and similar types 阅读全文
posted @ 2019-05-26 09:14 LB477 阅读(238) 评论(0) 推荐(0)
摘要:1. Overview of Built-In Sequences Container sequences: list, tuple, and collections.deque can hold items of different types. Flat sequences: str, byte 阅读全文
posted @ 2019-05-23 10:22 LB477 阅读(295) 评论(0) 推荐(0)
摘要:A decorator is a callable that takes another function as argument (the decorated function). The decorator may perform some processing with the decorat 阅读全文
posted @ 2019-05-22 16:43 LB477 阅读(180) 评论(0) 推荐(0)
摘要:1. Refactoring Strategy 1.1 Classic Strategy 1.2 Function-Oriented Strategy A flyweight is a shared object that can be used in multiple contexts simul 阅读全文
posted @ 2019-05-22 10:48 LB477 阅读(175) 评论(0) 推荐(0)
摘要:Function in python are first-class objects (runtime / element / argument / return) 1. Treating a Function Like an Object 2. Higher-Order Functions A f 阅读全文
posted @ 2019-05-21 22:08 LB477 阅读(227) 评论(0) 推荐(0)
摘要:一、下载 http://kindeditor.net/down.php 删除asp、asp.net、php、jsp、examples文件夹 拷贝到static目录下 二、配置 kindeditor目录下新建conifg.js admin.py views.py settings.py urls.py 阅读全文
posted @ 2019-05-06 16:53 LB477 阅读(519) 评论(0) 推荐(0)
摘要:yum install mysql-server mysql vi /etc/my.cnf [client] default-character-set=utf8 service mysqld start chkconfig mysqld on mysql grant all privileges on *.* to root@'localhost' identified by 'root'... 阅读全文
posted @ 2019-05-05 09:11 LB477 阅读(166) 评论(0) 推荐(0)
摘要:1、环境配置 Linux配置JDK环境:https://www.cnblogs.com/lb477/p/10809681.html CentOS6.9 Python环境配置:https://www.cnblogs.com/lb477/p/10809297.html 2、下载 http://www.j 阅读全文
posted @ 2019-05-04 21:13 LB477 阅读(158) 评论(0) 推荐(0)
摘要:wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131 阅读全文
posted @ 2019-05-04 20:35 LB477 阅读(2394) 评论(0) 推荐(0)
摘要:python2.7 yum install -y zlib zlib-devel openssl openssl-devel mysql-devel gcc gcc-c++ wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz 阅读全文
posted @ 2019-05-04 18:30 LB477 阅读(760) 评论(0) 推荐(0)