>>> x = {
'a':1,
'b':2,
'c':{
'aa':11,
'bb':22,
'cc':{
'aaa':111
}
}
# luna_pinyin_simp.custom.yaml | |
patch: | |
engine/translators: | |
- punct_translator | |
- r10n_translator | |
- reverse_lookup_translator | |
recognizer/patterns/reverse_lookup: "`[a-z]*$" | |
schema/dependencies: | |
- emoji |
% Manual of pgf-umlsd.sty, a convenient set of macros for drawing UML | |
% sequence diagrams. | |
% Written by Xu Yuan <[email protected]> from | |
% Southeast University, China. | |
% This file is part of pgf-umlsd | |
% you may get it at http://code.google.com/p/pgf-umlsd/ | |
\documentclass{article} | |
\usepackage[margin=12mm]{geometry} | |
\usepackage{hyperref} |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% | |
% 符合 GB/T 7714-2005 规范的 BibTeX 样式文件 | |
% | |
% 作者: 胡海星 南京大学计算机科学与技术系 | |
% 版本: v2.0.0 2013年10月18日 | |
% 项目主页: http://haixing-hu.github.io/nju-thesis/ | |
% | |
% 参考资料: | |
% [1] 中国国家标准化管理委员会. GB/T 7714-2005 文后参考文献着录规则[S]. 2005. |
def combinations(iterable, r): | |
pool = tuple(iterable) | |
n = len(pool) | |
if r > n: | |
return | |
def comb_core(n, r): | |
for i in reversed(range(r - 1, n)): | |
if (r == 1): | |
yield (i, ) |
>>> x = {
'a':1,
'b':2,
'c':{
'aa':11,
'bb':22,
'cc':{
'aaa':111
}
}
''' | |
Implementation of the fixed point combinator Y. | |
----------------------------------------------- | |
The Y combinator is a higher order function that suffices following relation: | |
Y(F) = F(Y(F)) | |
From the fixed point property we can get an idea on how to implement a recursive | |
anonymous function. |
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$$if(papersize)$$papersize$,$endif$]{$documentclass$} | |
\usepackage[T1]{fontenc} | |
\usepackage{lmodern} | |
\usepackage{amssymb,amsmath} | |
\usepackage{euler} | |
\usepackage{ifxetex,ifluatex} | |
\usepackage{fixltx2e} % provides \textsubscript | |
% use microtype if available | |
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex | |
\IfFileExists{microtype.sty}{\usepackage{microtype}}{} |