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
阅读全文
摘要: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
阅读全文
摘要:1. Generic Mapping Types The collections.abc module provides the Mapping and MutableMapping ABCs to formalize the interfaces of dict and similar types
阅读全文
摘要:1. Overview of Built-In Sequences Container sequences: list, tuple, and collections.deque can hold items of different types. Flat sequences: str, byte
阅读全文
摘要:A decorator is a callable that takes another function as argument (the decorated function). The decorator may perform some processing with the decorat
阅读全文
摘要: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
阅读全文
摘要:Function in python are first-class objects (runtime / element / argument / return) 1. Treating a Function Like an Object 2. Higher-Order Functions A f
阅读全文
摘要:一、下载 http://kindeditor.net/down.php 删除asp、asp.net、php、jsp、examples文件夹 拷贝到static目录下 二、配置 kindeditor目录下新建conifg.js admin.py views.py settings.py urls.py
阅读全文
摘要: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'...
阅读全文
摘要: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
阅读全文
摘要:wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号