now loading...
21 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/asset/prism-python.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:{{)*){(?!{)(?:[^{}]|{(?!{)(?:[^{}]|{(?!{)(?:[^{}])+})+})+}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^\s*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python;
--------------------------------------------------------------------------------
/asset/docsify-apachecn-footer.js:
--------------------------------------------------------------------------------
1 | (function(){
2 | var footer = [
3 | '',
5 | '
我们一直在努力
',
6 | '
apachecn/think-comp-2e-zh
',
7 | '
',
8 | ' ',
9 | ' ',
10 | ' 
',
11 | '
',
12 | '
',
13 | ' ',
17 | '
',
18 | '
'
19 | ].join('\n')
20 | var plugin = function(hook) {
21 | hook.afterEach(function(html) {
22 | return html + footer
23 | })
24 | hook.doneEach(function() {
25 | (adsbygoogle = window.adsbygoogle || []).push({})
26 | })
27 | }
28 | var plugins = window.$docsify.plugins || []
29 | plugins.push(plugin)
30 | window.$docsify.plugins = plugins
31 | })()
--------------------------------------------------------------------------------
/asset/style.css:
--------------------------------------------------------------------------------
1 | /*隐藏头部的目录*/
2 | #main>ul:nth-child(1) {
3 | display: none;
4 | }
5 |
6 | #main>ul:nth-child(2) {
7 | display: none;
8 | }
9 |
10 | .markdown-section h1 {
11 | margin: 3rem 0 2rem 0;
12 | }
13 |
14 | .markdown-section h2 {
15 | margin: 2rem 0 1rem;
16 | }
17 |
18 | img,
19 | pre {
20 | border-radius: 8px;
21 | }
22 |
23 | .content,
24 | .sidebar,
25 | .markdown-section,
26 | body,
27 | .search input {
28 | background-color: rgba(243, 242, 238, 1) !important;
29 | }
30 |
31 | @media (min-width:600px) {
32 | .sidebar-toggle {
33 | background-color: #f3f2ee;
34 | }
35 | }
36 |
37 | .docsify-copy-code-button {
38 | background: #f8f8f8 !important;
39 | color: #7a7a7a !important;
40 | }
41 |
42 | body {
43 | /*font-family: Microsoft YaHei, Source Sans Pro, Helvetica Neue, Arial, sans-serif !important;*/
44 | }
45 |
46 | .markdown-section>p {
47 | font-size: 16px !important;
48 | }
49 |
50 | .markdown-section pre>code {
51 | font-family: Consolas, Roboto Mono, Monaco, courier, monospace !important;
52 | font-size: .9rem !important;
53 |
54 | }
55 |
56 | /*.anchor span {
57 | color: rgb(66, 185, 131);
58 | }*/
59 |
60 | section.cover h1 {
61 | margin: 0;
62 | }
63 |
64 | body>section>div.cover-main>ul>li>a {
65 | color: #42b983;
66 | }
67 |
68 | .markdown-section img {
69 | box-shadow: 7px 9px 10px #aaa !important;
70 | }
71 |
72 |
73 | pre {
74 | background-color: #f3f2ee !important;
75 | }
76 |
77 | @media (min-width:600px) {
78 | pre code {
79 | /*box-shadow: 2px 1px 20px 2px #aaa;*/
80 | /*border-radius: 10px !important;*/
81 | padding-left: 20px !important;
82 | }
83 | }
84 |
85 | @media (max-width:600px) {
86 | pre {
87 | padding-left: 0px !important;
88 | padding-right: 0px !important;
89 | }
90 | }
91 |
92 | .markdown-section pre {
93 | padding-left: 0 !important;
94 | padding-right: 0px !important;
95 | box-shadow: 2px 1px 20px 2px #aaa;
96 | }
--------------------------------------------------------------------------------
/asset/docsify-copy-code.min.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * docsify-copy-code
3 | * v2.1.0
4 | * https://github.com/jperasmus/docsify-copy-code
5 | * (c) 2017-2019 JP Erasmus