├── 2020 ├── 11 │ ├── computer-binary │ │ └── index.html │ ├── dp1 │ │ └── index.html │ ├── ml-data-transform │ │ └── index.html │ ├── ml-data-visualization │ │ └── index.html │ ├── ml-decisiontree1 │ │ └── index.html │ ├── ml-decisiontree2 │ │ └── index.html │ ├── ml-knn1 │ │ └── index.html │ ├── ml-knn2 │ │ └── index.html │ ├── ml-nb1 │ │ └── index.html │ ├── ml-nb2 │ │ └── index.html │ ├── ml-page-rank │ │ └── index.html │ └── ml-space-vector-model │ │ └── index.html ├── 12 │ ├── dp-adapter │ │ └── index.html │ ├── dp-code-interface │ │ └── index.html │ ├── dp-command │ │ └── index.html │ ├── dp-decorator │ │ └── index.html │ ├── dp-factory │ │ └── index.html │ ├── dp-observer │ │ └── index.html │ ├── dp-singleton │ │ └── index.html │ ├── dp-strategy │ │ └── index.html │ ├── ml-adaboost │ │ └── index.html │ ├── ml-apriori │ │ └── index.html │ ├── ml-em │ │ └── index.html │ ├── ml-kmean │ │ └── index.html │ ├── ml-linear-regression │ │ └── index.html │ ├── ml-logistic-regression │ │ └── index.html │ └── ml-wordcloud │ │ └── index.html ├── 04 │ ├── 0-basics-py │ │ └── index.html │ ├── funny-shell-cmd │ │ └── index.html │ ├── git-use │ │ └── index.html │ ├── linux-awk │ │ └── index.html │ ├── linux-sort │ │ └── index.html │ ├── linux-uniq │ │ └── index.html │ ├── love-music │ │ └── index.html │ ├── ten-lang-hellworld │ │ └── index.html │ ├── use-hugo │ │ └── index.html │ ├── use-md │ │ └── index.html │ ├── used-linux-cmd1 │ │ └── index.html │ └── vim-use │ │ └── index.html ├── 05 │ ├── http │ │ └── index.html │ ├── python-learn │ │ └── index.html │ ├── python-learn0 │ │ └── index.html │ ├── python-learn1 │ │ └── index.html │ ├── python-learn10 │ │ └── index.html │ ├── python-learn11 │ │ └── index.html │ ├── python-learn12 │ │ └── index.html │ ├── python-learn13 │ │ └── index.html │ ├── python-learn14 │ │ └── index.html │ ├── python-learn2 │ │ └── index.html │ ├── python-learn3 │ │ └── index.html │ ├── python-learn4 │ │ └── index.html │ ├── python-learn5 │ │ └── index.html │ ├── python-learn6 │ │ └── index.html │ ├── python-learn7 │ │ └── index.html │ ├── python-learn8 │ │ └── index.html │ ├── python-learn9 │ │ └── index.html │ ├── regex │ │ └── index.html │ └── used-linux-cmd2 │ │ └── index.html ├── 06 │ ├── python-learn15 │ │ └── index.html │ ├── python-learn16 │ │ └── index.html │ ├── python-learn17 │ │ └── index.html │ ├── python-learn18 │ │ └── index.html │ ├── python-learn19 │ │ └── index.html │ ├── python-learn20 │ │ └── index.html │ └── python-learn21 │ │ └── index.html └── 07 │ ├── python-learn22 │ └── index.html │ ├── python-learn23 │ └── index.html │ ├── python-learn24 │ └── index.html │ ├── python-learn25 │ └── index.html │ └── python-learn26 │ └── index.html ├── 2021 ├── 11 │ ├── arch1 │ │ └── index.html │ ├── arch2 │ │ └── index.html │ ├── mysql-learn1 │ │ └── index.html │ ├── mysql-learn2 │ │ └── index.html │ ├── mysql-learn3 │ │ └── index.html │ ├── mysql-learn4 │ │ └── index.html │ ├── mysql-learn5 │ │ └── index.html │ ├── redis-learn1 │ │ └── index.html │ ├── redis-learn2 │ │ └── index.html │ └── redis-learn3 │ │ └── index.html ├── 12 │ └── distributed │ │ └── index.html ├── 01 │ ├── dp-composite │ │ └── index.html │ ├── dp-facade │ │ └── index.html │ ├── dp-iterator │ │ └── index.html │ ├── dp-proxy │ │ └── index.html │ ├── dp-state │ │ └── index.html │ ├── dp-template-method │ │ └── index.html │ ├── ml-randomforest │ │ └── index.html │ ├── ml-svm1 │ │ └── index.html │ └── ml-svm2 │ │ └── index.html ├── 02 │ ├── es-aggregations │ │ └── index.html │ ├── es-analyzers │ │ └── index.html │ ├── es-app-search │ │ └── index.html │ ├── es-cluster-conf │ │ └── index.html │ ├── es-cluster-secure │ │ └── index.html │ ├── es-cluster │ │ └── index.html │ ├── es-datatypes │ │ └── index.html │ ├── es-doc │ │ └── index.html │ ├── es-dsl-search │ │ └── index.html │ ├── es-install │ │ └── index.html │ ├── es-introduction │ │ └── index.html │ ├── es-mappings │ │ └── index.html │ ├── es-s │ │ └── index.html │ ├── es-search-template-suggest │ │ └── index.html │ ├── es-search │ │ └── index.html │ ├── es-uri-search │ │ └── index.html │ └── others-install │ │ └── index.html ├── 03 │ └── es-logstash-beats │ │ └── index.html └── 08 │ ├── jiagou-learn │ └── index.html │ └── mysql-learn │ └── index.html ├── 2022 ├── 01 │ ├── msg-queue │ │ └── index.html │ └── mysql-cluster │ │ └── index.html ├── 02 │ ├── java-concurrent1 │ │ └── index.html │ ├── java-concurrent2 │ │ └── index.html │ └── netty-learn │ │ └── index.html ├── 03 │ ├── es-es-cmds │ │ └── index.html │ ├── jvm1 │ │ └── index.html │ ├── jvm2 │ │ └── index.html │ ├── jvm3 │ │ └── index.html │ └── tomcat-learn │ │ └── index.html ├── 04 │ ├── go1 │ │ └── index.html │ └── go2 │ │ └── index.html ├── 05 │ ├── es-build │ │ └── index.html │ ├── git-cmds │ │ └── index.html │ ├── go-grpc │ │ └── index.html │ └── go3 │ │ └── index.html └── 06 │ ├── go-grpc │ └── index.html │ ├── go1 │ └── index.html │ ├── go10 │ └── index.html │ ├── go11 │ └── index.html │ ├── go12 │ └── index.html │ ├── go13 │ └── index.html │ ├── go15 │ └── index.html │ ├── go2 │ └── index.html │ ├── go3 │ └── index.html │ ├── go4 │ └── index.html │ ├── go5 │ └── index.html │ ├── go6 │ └── index.html │ ├── go7 │ └── index.html │ ├── go8 │ └── index.html │ └── go9 │ └── index.html ├── 404.html ├── README.md ├── about └── index.html ├── algorithm └── index.html ├── android-chrome-192x192.png ├── android-chrome-512x512.png ├── apple-touch-icon.png ├── book-manager └── index.html ├── books └── IntroToBoosting.pdf ├── browserconfig.xml ├── categories ├── category-2 │ ├── index.html │ ├── index.xml │ └── page │ │ └── 1 │ │ └── index.html ├── category-3 │ ├── index.html │ ├── index.xml │ └── page │ │ └── 1 │ │ └── index.html ├── english │ ├── index.html │ ├── index.xml │ └── page │ │ └── 1 │ │ └── index.html ├── es-笔记 │ ├── index.html │ ├── index.xml │ └── page │ │ ├── 1 │ │ └── index.html │ │ └── 2 │ │ └── index.html ├── golang笔记 │ ├── index.html │ ├── index.xml │ └── page │ │ └── 1 │ │ └── index.html ├── index.html ├── index.xml ├── linux-系统 │ ├── index.html │ ├── index.xml │ └── page │ │ └── 1 │ │ └── index.html ├── music │ ├── index.html │ ├── index.xml │ └── page │ │ └── 1 │ │ └── index.html ├── python │ ├── index.html │ ├── index.xml │ └── page │ │ └── 1 │ │ └── index.html ├── python简明教程 │ ├── index.html │ ├── index.xml │ └── page │ │ ├── 1 │ │ └── index.html │ │ └── 2 │ │ └── index.html ├── shortcodes │ ├── index.html │ ├── index.xml │ └── page │ │ └── 1 │ │ └── index.html ├── syntax-highlighting │ ├── index.html │ ├── index.xml │ └── page │ │ └── 1 │ │ └── index.html ├── theme-preview │ ├── index.html │ ├── index.xml │ └── page │ │ └── 1 │ │ └── index.html ├── 中文 │ ├── index.html │ ├── index.xml │ └── page │ │ └── 1 │ │ └── index.html ├── 学习笔记 │ ├── index.html │ ├── index.xml │ └── page │ │ ├── 1 │ │ └── index.html │ │ └── 2 │ │ └── index.html ├── 技术入门 │ ├── index.html │ ├── index.xml │ └── page │ │ └── 1 │ │ └── index.html ├── 日本語 │ ├── index.html │ ├── index.xml │ └── page │ │ └── 1 │ │ └── index.html ├── 机器学习 │ ├── index.html │ ├── index.xml │ └── page │ │ ├── 1 │ │ └── index.html │ │ └── 2 │ │ └── index.html └── 设计模式 │ ├── index.html │ ├── index.xml │ └── page │ └── 1 │ └── index.html ├── dist ├── even.26188efa.min.js ├── even.c2a46f00.min.css └── src │ └── fonts │ ├── chancery │ ├── apple-chancery-webfont.eot │ ├── apple-chancery-webfont.svg │ ├── apple-chancery-webfont.ttf │ ├── apple-chancery-webfont.woff │ └── apple-chancery-webfont.woff2 │ └── iconfont │ ├── iconfont.eot │ ├── iconfont.svg │ ├── iconfont.ttf │ └── iconfont.woff ├── dp └── index.html ├── es └── index.html ├── favicon-16x16.png ├── favicon-32x32.png ├── favicon.ico ├── go └── index.html ├── img ├── reward │ ├── alipay.png │ └── wechat.png └── spinner.svg ├── index.html ├── index.xml ├── learn-book └── index.html ├── lib ├── fancybox │ ├── jquery.fancybox-3.1.20.min.css │ └── jquery.fancybox-3.1.20.min.js ├── flowchartDiagrams │ ├── flowchart-1.8.0.min.js │ └── raphael-2.2.7.min.js ├── highlight │ └── highlight.pack.js ├── jquery │ └── jquery-3.2.1.min.js ├── js-sequence-diagrams │ ├── danielbd.woff2 │ ├── sequence-diagram-2.0.1.min.css │ ├── sequence-diagram-2.0.1.min.js │ ├── snap.svg-0.5.1.min.js │ ├── underscore-1.8.3.min.js │ └── webfontloader-1.6.28.js ├── slideout │ └── slideout-1.0.1.min.js └── timeago │ ├── timeago-3.0.2.min.js │ └── timeago.locales-3.0.2.min.js ├── love-music └── index.html ├── manifest.json ├── ml └── index.html ├── mstile-150x150.png ├── music └── index.html ├── my.md_bak ├── page ├── 1 │ └── index.html ├── 2 │ └── index.html ├── 3 │ └── index.html ├── 4 │ └── index.html ├── 5 │ └── index.html ├── 6 │ └── index.html ├── 7 │ └── index.html ├── 8 │ └── index.html └── 9 │ └── index.html ├── pics ├── GoF.png ├── ai-fathers.jpg ├── es.png └── ml.jpg ├── post ├── ' ├── chinese-preview │ └── index.html ├── english-preview │ └── index.html ├── even-preview │ └── index.html ├── hidden-post │ └── index.html ├── index.html ├── index.xml ├── japanese-preview │ ├── index.html │ └── zhifubao.png ├── js-flowchart-diagrams │ └── index.html ├── js-sequence-diagrams │ └── index.html ├── page │ ├── 1 │ │ └── index.html │ ├── 2 │ │ └── index.html │ ├── 3 │ │ └── index.html │ ├── 4 │ │ └── index.html │ ├── 5 │ │ └── index.html │ ├── 6 │ │ └── index.html │ ├── 7 │ │ └── index.html │ ├── 8 │ │ └── index.html │ └── 9 │ │ └── index.html ├── shortcodes │ └── index.html ├── syntax-highlighting │ └── index.html ├── 一篇文章带你编写10种语言helloworld │ └── index.html ├── 如何用hugo_搭建博客 │ └── index.html └── 零基础如何自学python │ └── index.html ├── python-learn └── index.html ├── robots.txt ├── safari-pinned-tab.svg ├── sitemap.xml ├── sitemap.xsl ├── somecode ├── dp │ ├── AbstractMethod.java │ ├── Adapter.java │ ├── Command.java │ ├── Component.java │ ├── Decorator.java │ ├── Facede.java │ ├── FactoryMethod.java │ ├── Observers.java │ ├── ProxyPattern.java │ ├── SimpleFactory.java │ ├── StatePattern.java │ ├── Strategy.java │ └── TemplateMethod.java ├── es │ ├── movies.txt │ └── movies_es.json └── ml │ ├── naive_bayes │ ├── stop_word │ │ └── stopword.txt │ ├── test_data │ │ ├── test_economy.txt │ │ ├── test_fun.txt │ │ ├── test_health.txt │ │ └── test_sport.txt │ ├── text_classification.py │ ├── train_data │ │ ├── train_economy.txt │ │ ├── train_fun.txt │ │ ├── train_health.txt │ │ └── train_sport.txt │ └── use_nb.py │ └── wordcloud │ ├── SimHei.ttf │ ├── gushi.txt │ └── gushi_wordcloud.py └── tags ├── english ├── index.html ├── index.xml └── page │ └── 1 │ └── index.html ├── index.html ├── index.xml ├── preview ├── index.html ├── index.xml └── page │ └── 1 │ └── index.html ├── python ├── index.html ├── index.xml └── page │ └── 1 │ └── index.html ├── shortcodes ├── index.html ├── index.xml └── page │ └── 1 │ └── index.html ├── syntax-highlighting ├── index.html ├── index.xml └── page │ └── 1 │ └── index.html ├── tag-1 ├── index.html ├── index.xml └── page │ └── 1 │ └── index.html ├── tag-2 ├── index.html ├── index.xml └── page │ └── 1 │ └── index.html ├── tag-3 ├── index.html ├── index.xml └── page │ └── 1 │ └── index.html ├── tag-4 ├── index.html ├── index.xml └── page │ └── 1 │ └── index.html ├── tag-5 ├── index.html ├── index.xml └── page │ └── 1 │ └── index.html ├── theme-preview ├── index.html ├── index.xml └── page │ └── 1 │ └── index.html ├── 中文 ├── index.html ├── index.xml └── page │ └── 1 │ └── index.html └── 日本語 ├── index.html ├── index.xml └── page └── 1 └── index.html /README.md: -------------------------------------------------------------------------------- 1 | # codeshellme.github.io 2 | 3 | [@码农充电站](https://codeshellme.github.io/),托管在github 4 | -------------------------------------------------------------------------------- /android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeshellme/codeshellme.github.io/76074d9edb1455b1a085768cee81df72f2517083/android-chrome-192x192.png -------------------------------------------------------------------------------- /android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeshellme/codeshellme.github.io/76074d9edb1455b1a085768cee81df72f2517083/android-chrome-512x512.png -------------------------------------------------------------------------------- /apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeshellme/codeshellme.github.io/76074d9edb1455b1a085768cee81df72f2517083/apple-touch-icon.png -------------------------------------------------------------------------------- /books/IntroToBoosting.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeshellme/codeshellme.github.io/76074d9edb1455b1a085768cee81df72f2517083/books/IntroToBoosting.pdf -------------------------------------------------------------------------------- /browserconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | #b91d47 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /categories/category-2/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | category-2 on 码农充电站 5 | https://codeshellme.github.io/categories/category-2/ 6 | Recent content in category-2 on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Tue, 10 Jul 2018 00:00:00 +0800 11 | 12 | 13 | 14 | 15 | 16 | Theme preview 17 | https://codeshellme.github.io/post/even-preview/ 18 | Tue, 10 Jul 2018 00:00:00 +0800 19 | 20 | https://codeshellme.github.io/post/even-preview/ 21 | Based on MarkdownPreview test.md. Markdown 1 2 3 4 5 6 7 8 # H1 ## H2 ### H3 #### H4 ##### H5 ###### H6 ### Duplicate Header ### Duplicate Header H1 H2 H3 H4 H5 H6 Duplicate Header Duplicate Header Paragraphs 1 2 3 4 This is a paragraph. I am still part of the paragraph. New paragraph. This is a paragraph. I am still part of the paragraph. 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /categories/category-2/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/categories/category-2/ -------------------------------------------------------------------------------- /categories/category-3/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | category-3 on 码农充电站 5 | https://codeshellme.github.io/categories/category-3/ 6 | Recent content in category-3 on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Tue, 10 Jul 2018 00:00:00 +0800 11 | 12 | 13 | 14 | 15 | 16 | Theme preview 17 | https://codeshellme.github.io/post/even-preview/ 18 | Tue, 10 Jul 2018 00:00:00 +0800 19 | 20 | https://codeshellme.github.io/post/even-preview/ 21 | Based on MarkdownPreview test.md. Markdown 1 2 3 4 5 6 7 8 # H1 ## H2 ### H3 #### H4 ##### H5 ###### H6 ### Duplicate Header ### Duplicate Header H1 H2 H3 H4 H5 H6 Duplicate Header Duplicate Header Paragraphs 1 2 3 4 This is a paragraph. I am still part of the paragraph. New paragraph. This is a paragraph. I am still part of the paragraph. 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /categories/category-3/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/categories/category-3/ -------------------------------------------------------------------------------- /categories/english/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | English · 码农充电站 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 56 | 57 | 61 | 62 | 63 | 64 |
65 | 68 |
69 | 70 | 71 | 72 |
73 |
74 | 89 |
90 | 111 | 112 |
113 |
114 |
115 |
116 |
117 |

English

118 |
119 | 120 |
121 | 122 | 2017-08-31 123 | 124 | 125 | 126 | [English] Creating a New Theme 127 | 128 | 129 |
130 |
131 | 132 | 136 |
137 | 138 | 139 |
140 |
141 | 142 | 165 | 166 |
167 | 168 |
169 |
170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | -------------------------------------------------------------------------------- /categories/english/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | English on 码农充电站 5 | https://codeshellme.github.io/categories/english/ 6 | Recent content in English on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Thu, 31 Aug 2017 15:43:48 +0800 11 | 12 | 13 | 14 | 15 | 16 | [English] Creating a New Theme 17 | https://codeshellme.github.io/post/english-preview/ 18 | Thu, 31 Aug 2017 15:43:48 +0800 19 | 20 | https://codeshellme.github.io/post/english-preview/ 21 | Introduction This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I&rsquo;ll explain how Hugo uses templates and how you can organize your templates to create a theme. I won&rsquo;t cover using CSS to style your theme. 22 | We&rsquo;ll start with creating a new site with a very basic template. 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /categories/english/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/categories/english/ -------------------------------------------------------------------------------- /categories/es-笔记/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/categories/es-%E7%AC%94%E8%AE%B0/ -------------------------------------------------------------------------------- /categories/golang笔记/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/categories/golang%E7%AC%94%E8%AE%B0/ -------------------------------------------------------------------------------- /categories/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Categories on 码农充电站 5 | https://codeshellme.github.io/categories/ 6 | Recent content in Categories on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Wed, 29 Jun 2022 22:38:52 +0800 11 | 12 | 13 | 14 | 15 | 16 | Golang笔记 17 | https://codeshellme.github.io/categories/golang%E7%AC%94%E8%AE%B0/ 18 | Wed, 29 Jun 2022 22:38:52 +0800 19 | 20 | https://codeshellme.github.io/categories/golang%E7%AC%94%E8%AE%B0/ 21 | 22 | 23 | 24 | 25 | 技术入门 26 | https://codeshellme.github.io/categories/%E6%8A%80%E6%9C%AF%E5%85%A5%E9%97%A8/ 27 | Tue, 31 May 2022 22:39:52 +0800 28 | 29 | https://codeshellme.github.io/categories/%E6%8A%80%E6%9C%AF%E5%85%A5%E9%97%A8/ 30 | 31 | 32 | 33 | 34 | ES 笔记 35 | https://codeshellme.github.io/categories/es-%E7%AC%94%E8%AE%B0/ 36 | Sun, 29 May 2022 22:39:52 +0800 37 | 38 | https://codeshellme.github.io/categories/es-%E7%AC%94%E8%AE%B0/ 39 | 40 | 41 | 42 | 43 | 学习笔记 44 | https://codeshellme.github.io/categories/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/ 45 | Mon, 28 Mar 2022 21:38:52 +0800 46 | 47 | https://codeshellme.github.io/categories/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/ 48 | 49 | 50 | 51 | 52 | 机器学习 53 | https://codeshellme.github.io/categories/%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0/ 54 | Tue, 19 Jan 2021 22:38:52 +0800 55 | 56 | https://codeshellme.github.io/categories/%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0/ 57 | 58 | 59 | 60 | 61 | 设计模式 62 | https://codeshellme.github.io/categories/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/ 63 | Fri, 08 Jan 2021 21:38:52 +0800 64 | 65 | https://codeshellme.github.io/categories/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/ 66 | 67 | 68 | 69 | 70 | Python简明教程 71 | https://codeshellme.github.io/categories/python%E7%AE%80%E6%98%8E%E6%95%99%E7%A8%8B/ 72 | Thu, 23 Jul 2020 21:38:52 +0800 73 | 74 | https://codeshellme.github.io/categories/python%E7%AE%80%E6%98%8E%E6%95%99%E7%A8%8B/ 75 | 76 | 77 | 78 | 79 | Linux 系统 80 | https://codeshellme.github.io/categories/linux-%E7%B3%BB%E7%BB%9F/ 81 | Fri, 01 May 2020 01:37:56 +0800 82 | 83 | https://codeshellme.github.io/categories/linux-%E7%B3%BB%E7%BB%9F/ 84 | 85 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /categories/linux-系统/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Linux 系统 on 码农充电站 5 | https://codeshellme.github.io/categories/linux-%E7%B3%BB%E7%BB%9F/ 6 | Recent content in Linux 系统 on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Fri, 01 May 2020 01:37:56 +0800 11 | 12 | 13 | 14 | 15 | 16 | 实用的linux 命令(下) 17 | https://codeshellme.github.io/2020/05/used-linux-cmd2/ 18 | Fri, 01 May 2020 01:37:56 +0800 19 | 20 | https://codeshellme.github.io/2020/05/used-linux-cmd2/ 21 | 三,磁盘管理 15,du Linux du 命令用于显示目录或文件所占的磁盘大小,其语法格式如下: du `参数` `目录或文件` 参数与目录或文件的位置也可以反过来: 22 | 23 | 24 | 25 | linux awk 命令实用手册 26 | https://codeshellme.github.io/2020/04/linux-awk/ 27 | Thu, 16 Apr 2020 21:38:52 +0800 28 | 29 | https://codeshellme.github.io/2020/04/linux-awk/ 30 | 0,简介 Linux awk 是一个实用的文本处理工具,它不仅是一款工具软件,也是一门编程语言。awk 的名称来源于其三位作者的姓氏缩写,其作者分别是Alfre 31 | 32 | 33 | 34 | linux sort 命令实用手册 35 | https://codeshellme.github.io/2020/04/linux-sort/ 36 | Thu, 16 Apr 2020 21:38:52 +0800 37 | 38 | https://codeshellme.github.io/2020/04/linux-sort/ 39 | Linux 中的sort 命令是一个很实用的工具,用于对文本内容以行为单位进行ASCII 码排序,默认按照升序进行排序(当然也可以按照降序)。 sort 命令的格式 40 | 41 | 42 | 43 | linux uniq 命令实用手册 44 | https://codeshellme.github.io/2020/04/linux-uniq/ 45 | Thu, 16 Apr 2020 21:38:52 +0800 46 | 47 | https://codeshellme.github.io/2020/04/linux-uniq/ 48 | Linux uniq 命令用于处理文本内容中的重复行。 这里我们只介绍其常用参数,其完整用法可参见man uniq。 例如,我们有如下文件内容: &gt;&gt;&gt; cat log.txt _______________ hello HEllo world world hello 使 49 | 50 | 51 | 52 | 实用的linux 命令(上) 53 | https://codeshellme.github.io/2020/04/used-linux-cmd1/ 54 | Thu, 16 Apr 2020 21:38:52 +0800 55 | 56 | https://codeshellme.github.io/2020/04/used-linux-cmd1/ 57 | 今天介绍几个我常用的Linux 命令,每个命令这里只介绍其常用参数。 对于每个Linux 命令都可以使用man + 命令名称,查看其完整使用方法。 0, 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /categories/linux-系统/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/categories/linux-%E7%B3%BB%E7%BB%9F/ -------------------------------------------------------------------------------- /categories/music/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | music on 码农充电站 5 | https://codeshellme.github.io/categories/music/ 6 | Recent content in music on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Thu, 09 Apr 2020 21:38:52 +0800 11 | 12 | 13 | 14 | 15 | 16 | 音乐 17 | https://codeshellme.github.io/2020/04/love-music/ 18 | Thu, 09 Apr 2020 21:38:52 +0800 19 | 20 | https://codeshellme.github.io/2020/04/love-music/ 21 | 这是一份歌单,排名不分先后。 国语 1,周深 大鱼 相思 亲爱的旅人啊 愿得一人心 来不及勇敢 漂洋过海来看你 卷珠帘 一缕执念 2,许巍 生活不止眼前的苟且 蓝莲花 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /categories/music/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/categories/music/ -------------------------------------------------------------------------------- /categories/python/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | python on 码农充电站 5 | http://localhost:1313/categories/python/ 6 | Recent content in python on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Wed, 30 Aug 2017 01:37:56 +0800 11 | 12 | 13 | 14 | 15 | 16 | 零基础如何自学Python 17 | http://localhost:1313/post/%E9%9B%B6%E5%9F%BA%E7%A1%80%E5%A6%82%E4%BD%95%E8%87%AA%E5%AD%A6python/ 18 | Wed, 30 Aug 2017 01:37:56 +0800 19 | 20 | http://localhost:1313/post/%E9%9B%B6%E5%9F%BA%E7%A1%80%E5%A6%82%E4%BD%95%E8%87%AA%E5%AD%A6python/ 21 | 1,什么是Python 人与人的交流需要人类语言,人与计算机交流(控制计算机)需要计算机语言。 Python 是众多计算机语言中的一种,每种计算机语言都有它 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /categories/python/page/1/index.html: -------------------------------------------------------------------------------- 1 | http://localhost:1313/categories/python/ -------------------------------------------------------------------------------- /categories/python简明教程/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/categories/python%E7%AE%80%E6%98%8E%E6%95%99%E7%A8%8B/ -------------------------------------------------------------------------------- /categories/shortcodes/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | shortcodes on 码农充电站 5 | https://codeshellme.github.io/categories/shortcodes/ 6 | Recent content in shortcodes on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Tue, 30 Aug 2016 16:01:23 +0800 11 | 12 | 13 | 14 | 15 | 16 | Shortcodes 17 | https://codeshellme.github.io/post/shortcodes/ 18 | Tue, 30 Aug 2016 16:01:23 +0800 19 | 20 | https://codeshellme.github.io/post/shortcodes/ 21 | <h1 id="admonition">Admonition</h1> 22 | <!-- raw HTML omitted --> 23 | <p>biu biu biu.</p> 24 | <!-- raw HTML omitted --> 25 | <!-- raw HTML omitted --> 26 | <!-- raw HTML omitted --> 27 | <!-- raw HTML omitted --> 28 | <!-- raw HTML omitted --> 29 | <div class="highlight"><div class="chroma"> 30 | <table class="lntable"><tr><td class="lntd"> 31 | <pre class="chroma"><code><span class="lnt"> 1 32 | </span><span class="lnt"> 2 33 | </span><span class="lnt"> 3 34 | </span><span class="lnt"> 4 35 | </span><span class="lnt"> 5 36 | </span><span class="lnt"> 6 37 | </span><span class="lnt"> 7 38 | </span><span class="lnt"> 8 39 | </span><span class="lnt"> 9 40 | </span><span class="lnt">10 41 | </span><span class="lnt">11 42 | </span><span class="lnt">12 43 | </span></code></pre></td> 44 | <td class="lntd"> 45 | <pre class="chroma"><code class="language-markdown" data-lang="markdown">{{% admonition note &#34;I&#39;m title!&#34; false %}} 46 | biu biu biu. 47 | 48 | {{% admonition type=&#34;note&#34; title=&#34;note&#34; details=&#34;true&#34; %}} 49 | biu biu biu. 50 | {{% /admonition %}} 51 | 52 | {{% admonition example %}} 53 | Without title. 54 | {{% /admonition %}} 55 | 56 | {{% /admonition %}} 57 | </code></pre></td></tr></table> 58 | </div> 59 | </div> 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /categories/shortcodes/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/categories/shortcodes/ -------------------------------------------------------------------------------- /categories/syntax-highlighting/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Syntax Highlighting on 码农充电站 5 | https://codeshellme.github.io/categories/syntax-highlighting/ 6 | Recent content in Syntax Highlighting on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Tue, 30 Aug 2011 16:01:23 +0800 11 | 12 | 13 | 14 | 15 | 16 | Syntax Highlighting 17 | https://codeshellme.github.io/post/syntax-highlighting/ 18 | Tue, 30 Aug 2011 16:01:23 +0800 19 | 20 | https://codeshellme.github.io/post/syntax-highlighting/ 21 | <div class="highlight"><div class="chroma"> 22 | <table class="lntable"><tr><td class="lntd"> 23 | <pre class="chroma"><code><span class="lnt">1 24 | </span><span class="lnt">2 25 | </span><span class="lnt">3 26 | </span></code></pre></td> 27 | <td class="lntd"> 28 | <pre class="chroma"><code class="language-js" data-lang="js"><span class="kd">function</span> <span class="nx">helloWorld</span> <span class="p">()</span> <span class="p">{</span> 29 | <span class="nx">alert</span><span class="p">(</span><span class="s2">&#34;Hello, World!&#34;</span><span class="p">)</span> 30 | <span class="p">}</span> 31 | </code></pre></td></tr></table> 32 | </div> 33 | </div> 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /categories/syntax-highlighting/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/categories/syntax-highlighting/ -------------------------------------------------------------------------------- /categories/theme-preview/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Theme preview on 码农充电站 5 | https://codeshellme.github.io/categories/theme-preview/ 6 | Recent content in Theme preview on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Tue, 10 Jul 2018 00:00:00 +0800 11 | 12 | 13 | 14 | 15 | 16 | Theme preview 17 | https://codeshellme.github.io/post/even-preview/ 18 | Tue, 10 Jul 2018 00:00:00 +0800 19 | 20 | https://codeshellme.github.io/post/even-preview/ 21 | Based on MarkdownPreview test.md. Markdown 1 2 3 4 5 6 7 8 # H1 ## H2 ### H3 #### H4 ##### H5 ###### H6 ### Duplicate Header ### Duplicate Header H1 H2 H3 H4 H5 H6 Duplicate Header Duplicate Header Paragraphs 1 2 3 4 This is a paragraph. I am still part of the paragraph. New paragraph. This is a paragraph. I am still part of the paragraph. 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /categories/theme-preview/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/categories/theme-preview/ -------------------------------------------------------------------------------- /categories/中文/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 中文 · 码农充电站 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 56 | 57 | 61 | 62 | 63 | 64 |
65 | 68 |
69 | 70 | 71 | 72 |
73 |
74 | 89 |
90 | 111 | 112 |
113 |
114 |
115 |
116 |
117 |

中文

118 |
119 | 120 |
121 | 122 | 2017-08-30 123 | 124 | 125 | 126 | [中文] 《长恨歌》 127 | 128 | 129 |
130 |
131 | 132 | 136 |
137 | 138 | 139 |
140 |
141 | 142 | 165 | 166 |
167 | 168 |
169 |
170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | -------------------------------------------------------------------------------- /categories/中文/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 中文 on 码农充电站 5 | https://codeshellme.github.io/categories/%E4%B8%AD%E6%96%87/ 6 | Recent content in 中文 on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Wed, 30 Aug 2017 01:37:56 +0800 11 | 12 | 13 | 14 | 15 | 16 | [中文] 《长恨歌》 17 | https://codeshellme.github.io/post/chinese-preview/ 18 | Wed, 30 Aug 2017 01:37:56 +0800 19 | 20 | https://codeshellme.github.io/post/chinese-preview/ 21 | 《长恨歌》是中国唐朝诗人白居易的一首长篇叙事诗。 第一段:贵妃受宠爱 汉皇重色思倾国,御宇多年求不得。杨家有女初长成,养在深闺人未识。 天生丽质难 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /categories/中文/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/categories/%E4%B8%AD%E6%96%87/ -------------------------------------------------------------------------------- /categories/学习笔记/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/categories/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/ -------------------------------------------------------------------------------- /categories/技术入门/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 技术入门 on 码农充电站 5 | https://codeshellme.github.io/categories/%E6%8A%80%E6%9C%AF%E5%85%A5%E9%97%A8/ 6 | Recent content in 技术入门 on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Tue, 31 May 2022 22:39:52 +0800 11 | 12 | 13 | 14 | 15 | 16 | Git 命令参考 17 | https://codeshellme.github.io/2022/05/git-cmds/ 18 | Tue, 31 May 2022 22:39:52 +0800 19 | 20 | https://codeshellme.github.io/2022/05/git-cmds/ 21 | 学习资料: Git 官方手册-中文版 Git 官方手册-英文版 1,git config 1,用户名和邮件 配置用户名和邮件: # 添加配置 git config --global user.name 'Your name' git config --global user.email 'Your email' # 查看配置 git config 22 | 23 | 24 | 25 | 计算机二进制原码反码补码 26 | https://codeshellme.github.io/2020/11/computer-binary/ 27 | Sun, 22 Nov 2020 01:37:56 +0800 28 | 29 | https://codeshellme.github.io/2020/11/computer-binary/ 30 | 公号:码农充电站pro 主页:https://codeshellme.github.io 计算机最基本的工作是处理数据,而数据的最底层表现形式是 31 | 32 | 33 | 34 | Regex 正则表达式入门 35 | https://codeshellme.github.io/2020/05/regex/ 36 | Sun, 03 May 2020 01:37:56 +0800 37 | 38 | https://codeshellme.github.io/2020/05/regex/ 39 | 0,什么是正则表达式 正则表达式(Regular Expression简写为Regex),又称为规则表达式,它是一种强大的文本匹配模式,其用于在 40 | 41 | 42 | 43 | HTTP 协议图解 44 | https://codeshellme.github.io/2020/05/http/ 45 | Fri, 01 May 2020 01:37:56 +0800 46 | 47 | https://codeshellme.github.io/2020/05/http/ 48 | HTTP 协议是一个非常重要的网络协议,我们平时能够使用浏览器浏览网页,其中一个非常重要的条件就是HTTP 协议。 0,什么是网络协议 互联网的目的是分享 49 | 50 | 51 | 52 | Git 简明手册 53 | https://codeshellme.github.io/2020/04/git-use/ 54 | Tue, 28 Apr 2020 01:37:56 +0800 55 | 56 | https://codeshellme.github.io/2020/04/git-use/ 57 | 0,Git 是什么 Git 是一个VCS(Version Control System),即版本控制系统。 版本控制系统从字面意思来看,它的用途就是管理/控制文件的版本 58 | 59 | 60 | 61 | 如何使用Markdown 编写文档 62 | https://codeshellme.github.io/2020/04/use-md/ 63 | Sat, 25 Apr 2020 21:38:52 +0800 64 | 65 | https://codeshellme.github.io/2020/04/use-md/ 66 | Markdown 是一种轻量级标记语言,用来编写文本文档,一般后缀名为.md。该语言在 2004 由约翰·格鲁伯(John Gruber)创建。 由于Markdown 语法 67 | 68 | 69 | 70 | 如何高效使用Vim 71 | https://codeshellme.github.io/2020/04/vim-use/ 72 | Sat, 11 Apr 2020 01:37:56 +0800 73 | 74 | https://codeshellme.github.io/2020/04/vim-use/ 75 | Vim 是一款文本编辑器,被称为编辑器之神,非常适合在shell 中编辑代码,熟练的使用Vim,可以让你高效的编写代码。 Vim 是Vi 的增强版,所有的类U 76 | 77 | 78 | 79 | 15个有趣好玩的linux shell命令 80 | https://codeshellme.github.io/2020/04/funny-shell-cmd/ 81 | Thu, 09 Apr 2020 01:37:56 +0800 82 | 83 | https://codeshellme.github.io/2020/04/funny-shell-cmd/ 84 | 今天介绍一些有趣的linux shell命令,所有的命令都可以使用man + 命令名称 来查看完整的使用方法。 1,figlet 字符画 figlet 可以将英文字符 85 | 86 | 87 | 88 | 一篇文章带你编写10种语言HelloWorld 89 | https://codeshellme.github.io/2020/04/ten-lang-hellworld/ 90 | Tue, 07 Apr 2020 01:37:56 +0800 91 | 92 | https://codeshellme.github.io/2020/04/ten-lang-hellworld/ 93 | 0,编程语言排行榜 计算机编程语言众多,世界上大概有600 多种编程语言,但是流行的也就几十种。我们来看下编程语言排行榜,下面介绍两种语言排行榜 94 | 95 | 96 | 97 | 如何用hugo 搭建博客 98 | https://codeshellme.github.io/2020/04/use-hugo/ 99 | Mon, 06 Apr 2020 01:37:56 +0800 100 | 101 | https://codeshellme.github.io/2020/04/use-hugo/ 102 | 1,Hugo 简介 搭建个人博客有很多开源的博客框架,我们要介绍的框架叫作Hugo。Hugo 是一个基于Go 语言的框架,可以快速方便的创建自己的博 103 | 104 | 105 | 106 | 零基础如何自学Python 107 | https://codeshellme.github.io/2020/04/0-basics-py/ 108 | Mon, 06 Apr 2020 01:37:56 +0800 109 | 110 | https://codeshellme.github.io/2020/04/0-basics-py/ 111 | 1,什么是Python 人与人的交流需要人类语言,人与计算机交流(控制计算机)需要计算机语言。 Python 是众多计算机语言中的一种,每种计算机语言都有它 112 | 113 | 114 | 115 | -------------------------------------------------------------------------------- /categories/技术入门/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/categories/%E6%8A%80%E6%9C%AF%E5%85%A5%E9%97%A8/ -------------------------------------------------------------------------------- /categories/日本語/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 日本語 on 码农充电站 5 | https://codeshellme.github.io/categories/%E6%97%A5%E6%9C%AC%E8%AA%9E/ 6 | Recent content in 日本語 on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Wed, 30 Aug 2017 01:53:34 +0800 11 | 12 | 13 | 14 | 15 | 16 | [日本語] 敬語体系 17 | https://codeshellme.github.io/post/japanese-preview/ 18 | Wed, 30 Aug 2017 01:53:34 +0800 19 | 20 | https://codeshellme.github.io/post/japanese-preview/ 21 | 日本語の敬語体系は、一般に、大きく尊敬語・謙譲語・丁寧語に分類される。文化審議会国語分科会は、2007年2月に「敬語の指針」を答申し、これに 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /categories/日本語/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/categories/%E6%97%A5%E6%9C%AC%E8%AA%9E/ -------------------------------------------------------------------------------- /categories/机器学习/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/categories/%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0/ -------------------------------------------------------------------------------- /categories/设计模式/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 设计模式 on 码农充电站 5 | https://codeshellme.github.io/categories/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/ 6 | Recent content in 设计模式 on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Fri, 08 Jan 2021 21:38:52 +0800 11 | 12 | 13 | 14 | 15 | 16 | 组合模式-统一的处理个别对象与组合对象 17 | https://codeshellme.github.io/2021/01/dp-composite/ 18 | Fri, 08 Jan 2021 21:38:52 +0800 19 | 20 | https://codeshellme.github.io/2021/01/dp-composite/ 21 | 公号:码农充电站pro 主页:https://codeshellme.github.io 本篇来介绍组合模式(Composite Design Pattern 22 | 23 | 24 | 25 | 代理模式-访问对象的代理而非其本身 26 | https://codeshellme.github.io/2021/01/dp-proxy/ 27 | Thu, 07 Jan 2021 21:38:52 +0800 28 | 29 | https://codeshellme.github.io/2021/01/dp-proxy/ 30 | 公号:码农充电站pro 主页:https://codeshellme.github.io 本篇来介绍代理模式(Proxy Design Pattern),通过 31 | 32 | 33 | 34 | 状态模式-将状态和行为封装成对象 35 | https://codeshellme.github.io/2021/01/dp-state/ 36 | Wed, 06 Jan 2021 21:38:52 +0800 37 | 38 | https://codeshellme.github.io/2021/01/dp-state/ 39 | 公号:码农充电站pro 主页:https://codeshellme.github.io 本篇文章来介绍状态模式(State Design Pattern), 40 | 41 | 42 | 43 | 迭代器模式-统一集合的遍历方式 44 | https://codeshellme.github.io/2021/01/dp-iterator/ 45 | Tue, 05 Jan 2021 21:38:52 +0800 46 | 47 | https://codeshellme.github.io/2021/01/dp-iterator/ 48 | 公号:码农充电站pro 主页:https://codeshellme.github.io 今天来介绍迭代器模式(Iterator Design Pattern 49 | 50 | 51 | 52 | 模板方法模式-封装一套算法流程 53 | https://codeshellme.github.io/2021/01/dp-template-method/ 54 | Mon, 04 Jan 2021 21:38:52 +0800 55 | 56 | https://codeshellme.github.io/2021/01/dp-template-method/ 57 | 公号:码农充电站pro 主页:https://codeshellme.github.io 今天来介绍模板方法模式(Template Method Design Patte 58 | 59 | 60 | 61 | 外观模式-简化子系统的复杂性 62 | https://codeshellme.github.io/2021/01/dp-facade/ 63 | Sun, 03 Jan 2021 21:38:52 +0800 64 | 65 | https://codeshellme.github.io/2021/01/dp-facade/ 66 | 公号:码农充电站pro 主页:https://codeshellme.github.io 今天来介绍外观模式(Facade Design Pattern)。 1 67 | 68 | 69 | 70 | 适配器模式-让不兼容的接口得以适配 71 | https://codeshellme.github.io/2020/12/dp-adapter/ 72 | Thu, 31 Dec 2020 21:38:52 +0800 73 | 74 | https://codeshellme.github.io/2020/12/dp-adapter/ 75 | 公号:码农充电站pro 主页:https://codeshellme.github.io 本篇来介绍适配器模式(Adapter Design Pattern) 76 | 77 | 78 | 79 | 命令模式-将请求封装成对象 80 | https://codeshellme.github.io/2020/12/dp-command/ 81 | Wed, 30 Dec 2020 21:38:52 +0800 82 | 83 | https://codeshellme.github.io/2020/12/dp-command/ 84 | 公号:码农充电站pro 主页:https://codeshellme.github.io 本篇来介绍命令模式(Command Design Pattern), 85 | 86 | 87 | 88 | 装饰者模式-动态的包装原有对象的行为 89 | https://codeshellme.github.io/2020/12/dp-decorator/ 90 | Tue, 29 Dec 2020 21:38:52 +0800 91 | 92 | https://codeshellme.github.io/2020/12/dp-decorator/ 93 | 公号:码农充电站pro 主页:https://codeshellme.github.io 今天来介绍装饰者模式(Decorator Design Patter 94 | 95 | 96 | 97 | 观察者模式-将消息通知给观察者 98 | https://codeshellme.github.io/2020/12/dp-observer/ 99 | Mon, 28 Dec 2020 21:38:52 +0800 100 | 101 | https://codeshellme.github.io/2020/12/dp-observer/ 102 | 公号:码农充电站pro 主页:https://codeshellme.github.io 观察者模式(Observer Design Pattern)也被称为 103 | 104 | 105 | 106 | 策略模式-定义一个算法族 107 | https://codeshellme.github.io/2020/12/dp-strategy/ 108 | Fri, 25 Dec 2020 21:38:52 +0800 109 | 110 | https://codeshellme.github.io/2020/12/dp-strategy/ 111 | 公号:码农充电站pro 主页:https://codeshellme.github.io 本篇来介绍策略模式(Strategy Design Pattern) 112 | 113 | 114 | 115 | 针对接口编程,而不是针对实现编程 116 | https://codeshellme.github.io/2020/12/dp-code-interface/ 117 | Wed, 23 Dec 2020 22:38:52 +0800 118 | 119 | https://codeshellme.github.io/2020/12/dp-code-interface/ 120 | “针对接口编程”的真正含义是“针对超类型编程”,它利用了多态的特性。 更明确的来说就是,一个变量 a 的声明类型应该是超类型A,所谓的超类型一般是 121 | 122 | 123 | 124 | 工厂模式-将对象的创建封装起来 125 | https://codeshellme.github.io/2020/12/dp-factory/ 126 | Wed, 23 Dec 2020 21:38:52 +0800 127 | 128 | https://codeshellme.github.io/2020/12/dp-factory/ 129 | 公号:码农充电站pro 主页:https://codeshellme.github.io 工厂模式(Factory Design Pattern)可细分为三种 130 | 131 | 132 | 133 | 单例模式-让一个类只有一个实例 134 | https://codeshellme.github.io/2020/12/dp-singleton/ 135 | Tue, 22 Dec 2020 21:38:52 +0800 136 | 137 | https://codeshellme.github.io/2020/12/dp-singleton/ 138 | 公号:码农充电站pro 主页:https://codeshellme.github.io 当我们需要使得某个类只能有一个实例时,可以使用单例模式 139 | 140 | 141 | 142 | 设计模式之高质量代码 143 | https://codeshellme.github.io/2020/11/dp1/ 144 | Thu, 12 Nov 2020 21:38:52 +0800 145 | 146 | https://codeshellme.github.io/2020/11/dp1/ 147 | 公号:码农充电站pro 主页:https://codeshellme.github.io 如果有人问你,“什么样的代码是好代码”,你会怎样回答呢 148 | 149 | 150 | 151 | -------------------------------------------------------------------------------- /categories/设计模式/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/categories/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/ -------------------------------------------------------------------------------- /dist/even.26188efa.min.js: -------------------------------------------------------------------------------- 1 | !function(t){var o={};function a(e){if(o[e])return o[e].exports;var n=o[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=t,a.c=o,a.d=function(e,n,t){a.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(n,e){if(1&e&&(n=a(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)a.d(t,o,function(e){return n[e]}.bind(null,o));return t},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="",a(a.s=1)}([function(e,n,t){},function(e,n,t){"use strict";t.r(n);var o={backToTop:function(){var e=$("#back-to-top");$(window).scroll(function(){100<$(window).scrollTop()?e.fadeIn(1e3):e.fadeOut(1e3)}),e.click(function(){$("body,html").animate({scrollTop:0})})},mobileNavbar:function(){var e=$("#mobile-navbar"),n=$(".mobile-navbar-icon"),t=new Slideout({panel:document.getElementById("mobile-panel"),menu:document.getElementById("mobile-menu"),padding:180,tolerance:70});t.disableTouch(),n.click(function(){t.toggle()}),t.on("beforeopen",function(){e.addClass("fixed-open"),n.addClass("icon-click").removeClass("icon-out")}),t.on("beforeclose",function(){e.removeClass("fixed-open"),n.addClass("icon-out").removeClass("icon-click")}),$("#mobile-panel").on("touchend",function(){t.isOpen()&&n.click()})},_initToc:function(){var n=$(".post-toc"),e=$(".post-footer");if(n.length){var t=n.offset().top-20,o=e.offset().top-n.height()-20,a={start:{position:"absolute",top:t},process:{position:"fixed",top:20},end:{position:"absolute",top:o}};$(window).scroll(function(){var e=$(window).scrollTop();ee[t]&&n<=e[t+1])return t;return n>e[e.length-1]?e.length-1:-1}(s,e);if($(r).removeClass("active"),$(l).removeClass("has-active"),-1!==n){$(r[n]).addClass("active");for(var t=r[n].parentNode;"NAV"!==t.tagName;)$(t).addClass("has-active"),t=t.parentNode.parentNode}})},fancybox:function(){$.fancybox&&($(".post-content").each(function(){$(this).find("img").each(function(){$(this).wrap(''))})}),$(".fancybox").fancybox({selector:".fancybox",protect:!0}))},highlight:function(){for(var e=document.querySelectorAll("pre code"),n=0;n'.concat(l+1,"");for(var i="",s=0;s'.concat(a[s],"");t.className+=" highlight";var d=document.createElement("figure");d.className=t.className,d.innerHTML='
'.concat(c,'
').concat(i,"
"),o.parentElement.replaceChild(d,o)}},chroma:function(){for(var e=document.querySelectorAll(".highlight > .chroma"),n=0;n code"),a=o?o.className:"";t.className+=" "+a}},toc:function(){var e=document.getElementById("post-toc");if(null!==e){var n=document.getElementById("TableOfContents");null===n?e.parentNode.removeChild(e):(this._refactorToc(n),this._linkToc(),this._initToc())}},_refactorToc:function(e){for(var n,t=e.children[0],o=t;1===o.children.length&&"UL"===(n=o.children[0].children[0]).tagName;)o=n;o!==t&&e.replaceChild(o,t)},_linkToc:function(){for(var e=document.querySelectorAll("#TableOfContents a:first-child"),n=0;nh"+t),a=0;a').concat(r.innerHTML)}},flowchart:function(){if(window.flowchart)for(var e=document.querySelectorAll("pre code.language-flowchart, pre code.language-flow"),n=0;n table"),n=0;n 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /lib/js-sequence-diagrams/danielbd.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeshellme/codeshellme.github.io/76074d9edb1455b1a085768cee81df72f2517083/lib/js-sequence-diagrams/danielbd.woff2 -------------------------------------------------------------------------------- /lib/js-sequence-diagrams/sequence-diagram-2.0.1.min.css: -------------------------------------------------------------------------------- 1 | /** js sequence diagrams 2 | * https://bramp.github.io/js-sequence-diagrams/ 3 | * (c) 2012-2017 Andrew Brampton (bramp.net) 4 | * Simplified BSD license. 5 | */ 6 | @font-face{font-family:'danielbd';src:url(danielbd.woff2) format('woff2'),url(danielbd.woff) format('woff');font-weight:normal;font-style:normal} -------------------------------------------------------------------------------- /lib/timeago/timeago-3.0.2.min.js: -------------------------------------------------------------------------------- 1 | !function(t,e){"object"==typeof module&&module.exports?(module.exports=e(),module.exports.default=module.exports):t.timeago=e()}("undefined"!=typeof window?window:this,function(){function t(t){return t instanceof Date?t:isNaN(t)?/^\d+$/.test(t)?new Date(e(t)):(t=(t||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"),new Date(t)):new Date(e(t))}function e(t){return parseInt(t)}function n(t,n,r){n=l[n]?n:l[r]?r:"en";for(var o=0,i=t<0?1:0,a=t=Math.abs(t);t>=p[o]&&o(0===o?9:1)&&(o+=1),l[n](t,o,a)[i].replace("%s",t)}function r(e,n){return((n=n?t(n):new Date)-t(e))/1e3}function o(t){for(var e=1,n=0,r=Math.abs(t);t>=p[n]&&n1&&(n+="s"),[t+" "+n+" ago","in "+t+" "+n]},zh_CN:function(t,e){if(0===e)return["刚刚","片刻后"];var n=s[parseInt(e/2)];return[t+n+"前",t+n+"后"]}},p=[60,60,24,7,365/7/12,12],h=6,m="data-tid",w={};return c.prototype.doRender=function(t,e,i){var a,c=r(e,this.nowDate),d=this;t.innerHTML=n(c,i,this.defaultLocale),w[a=setTimeout(function(){d.doRender(t,e,i),delete w[a]},Math.min(1e3*o(c),2147483647))]=0,u(t,a)},c.prototype.format=function(t,e){return n(r(t,this.nowDate),e,this.defaultLocale)},c.prototype.render=function(t,e){void 0===t.length&&(t=[t]);for(var n=0,r=t.length;nhttps://codeshellme.github.io/ -------------------------------------------------------------------------------- /pics/GoF.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeshellme/codeshellme.github.io/76074d9edb1455b1a085768cee81df72f2517083/pics/GoF.png -------------------------------------------------------------------------------- /pics/ai-fathers.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeshellme/codeshellme.github.io/76074d9edb1455b1a085768cee81df72f2517083/pics/ai-fathers.jpg -------------------------------------------------------------------------------- /pics/es.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeshellme/codeshellme.github.io/76074d9edb1455b1a085768cee81df72f2517083/pics/es.png -------------------------------------------------------------------------------- /pics/ml.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeshellme/codeshellme.github.io/76074d9edb1455b1a085768cee81df72f2517083/pics/ml.jpg -------------------------------------------------------------------------------- /post/japanese-preview/zhifubao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeshellme/codeshellme.github.io/76074d9edb1455b1a085768cee81df72f2517083/post/japanese-preview/zhifubao.png -------------------------------------------------------------------------------- /post/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/post/ -------------------------------------------------------------------------------- /robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Sitemap: https://codeshellme.github.io/sitemap.xml 3 | -------------------------------------------------------------------------------- /safari-pinned-tab.svg: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 8 | Created by potrace 1.11, written by Peter Selinger 2001-2013 9 | 10 | 12 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /sitemap.xsl: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | XML Sitemap 12 | 13 | 65 | 66 | 67 |
68 |

XML Sitemap

69 |

70 | This is a sitemap generated by Hugo to allow search engines to discover this blog's content. 71 |

72 |

73 | The xsl style copy from Ghost. 74 |

75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 97 | 100 | 103 | 106 | 107 | 108 | 109 |
URL ( total)PrioCh. Freq.Last Modified
90 | 91 | 92 | 93 | 94 | 95 | 96 | 98 | 99 | 101 | 102 | 104 | 105 |
110 |
111 | 112 | 113 | 114 |
115 |
-------------------------------------------------------------------------------- /somecode/dp/AbstractMethod.java: -------------------------------------------------------------------------------- 1 | public class AbstractMethod { 2 | public static void main(String[] args) { 3 | DrinkStoreAbstract beiStore = new BeijingDrinkStore(); 4 | beiStore.sellDrink("apple"); 5 | beiStore.sellDrink("banana"); 6 | beiStore.sellDrink("orange"); 7 | 8 | DrinkStoreAbstract shangStore = new ShangHaiDrinkStore(); 9 | shangStore.sellDrink("apple"); 10 | shangStore.sellDrink("banana"); 11 | shangStore.sellDrink("orange"); 12 | } 13 | } 14 | 15 | abstract class DrinkStoreAbstract { 16 | 17 | // final 防止子类覆盖 18 | public final Drink sellDrink(String flavor) { 19 | 20 | Drink drink = factoryMethod(flavor); // 使用实例 21 | 22 | drink.packing(); 23 | 24 | return drink; 25 | } 26 | 27 | // 子类必须实现 28 | protected abstract Drink factoryMethod(String flavor); 29 | } 30 | 31 | class BeijingDrinkStore extends DrinkStoreAbstract { 32 | 33 | public Drink factoryMethod(String flavor) { 34 | Drink drink = null; 35 | DrinkBoxFactory factory = new BeiJingBoxFactory(); 36 | 37 | if (flavor.equals("apple")) { 38 | drink = new DrinkApple(factory); 39 | } else if (flavor.equals("banana")) { 40 | drink = new DrinkBanana(factory); 41 | } else if (flavor.equals("orange")) { 42 | drink = new DrinkOrange(factory); 43 | } 44 | 45 | return drink; 46 | } 47 | } 48 | 49 | 50 | class ShangHaiDrinkStore extends DrinkStoreAbstract { 51 | 52 | public Drink factoryMethod(String flavor) { 53 | Drink drink = null; 54 | DrinkBoxFactory factory = new ShangHaiBoxFactory(); 55 | 56 | if (flavor.equals("apple")) { 57 | drink = new DrinkApple(factory); 58 | } else if (flavor.equals("banana")) { 59 | drink = new DrinkBanana(factory); 60 | } else if (flavor.equals("orange")) { 61 | drink = new DrinkOrange(factory); 62 | } 63 | 64 | return drink; 65 | } 66 | } 67 | 68 | 69 | interface DrinkBoxFactory { 70 | String createBox(); 71 | } 72 | 73 | 74 | class BeiJingBoxFactory implements DrinkBoxFactory { 75 | public String createBox() { 76 | return "BeijingBox"; 77 | } 78 | } 79 | 80 | 81 | class ShangHaiBoxFactory implements DrinkBoxFactory { 82 | public String createBox() { 83 | return "ShangHaiBox"; 84 | } 85 | } 86 | 87 | 88 | abstract class Drink { 89 | String flavor; 90 | protected abstract void packing(); 91 | } 92 | 93 | 94 | class DrinkApple extends Drink { 95 | DrinkBoxFactory boxFactory; 96 | 97 | public DrinkApple(DrinkBoxFactory boxFactory) { 98 | this.boxFactory = boxFactory; 99 | this.flavor = "DrinkApple"; 100 | } 101 | 102 | public void packing() { 103 | System.out.println(flavor + boxFactory.createBox()); 104 | } 105 | } 106 | 107 | 108 | class DrinkBanana extends Drink { 109 | DrinkBoxFactory boxFactory; 110 | 111 | public DrinkBanana(DrinkBoxFactory boxFactory) { 112 | this.boxFactory = boxFactory; 113 | this.flavor = "DrinkBanana"; 114 | } 115 | 116 | public void packing() { 117 | System.out.println(flavor + boxFactory.createBox()); 118 | } 119 | } 120 | 121 | 122 | class DrinkOrange extends Drink { 123 | DrinkBoxFactory boxFactory; 124 | 125 | public DrinkOrange(DrinkBoxFactory boxFactory) { 126 | this.boxFactory = boxFactory; 127 | this.flavor = "DrinkOrange"; 128 | } 129 | 130 | public void packing() { 131 | System.out.println(flavor + boxFactory.createBox()); 132 | } 133 | } 134 | -------------------------------------------------------------------------------- /somecode/dp/Adapter.java: -------------------------------------------------------------------------------- 1 | public class Adapter { 2 | public static void xiaoMing(BicycleInterface b) { 3 | b.ride(); 4 | } 5 | 6 | public static void main(String[] args) { 7 | Bicycle b = new Bicycle(); 8 | Car c = new Car(); 9 | 10 | xiaoMing(b); 11 | // xiaoMing(c); //类型不匹配 12 | 13 | CarAdapter ca = new CarAdapter(c); // 将 Car 适配成 Bicycle 14 | xiaoMing(ca); // 小明可以用了 15 | } 16 | } 17 | 18 | class CarAdapter implements BicycleInterface { 19 | private CarInterface car; 20 | 21 | public CarAdapter(CarInterface car) { 22 | this.car = car; 23 | } 24 | 25 | public void ride() { 26 | car.drive(); 27 | } 28 | } 29 | 30 | interface BicycleInterface { 31 | void ride(); 32 | } 33 | 34 | class Bicycle implements BicycleInterface { 35 | public void ride() { 36 | System.out.println("I am riding a bicycle."); 37 | } 38 | } 39 | 40 | interface CarInterface { 41 | void drive(); 42 | } 43 | 44 | class Car implements CarInterface { 45 | public void drive() { 46 | System.out.println("I am driving a car."); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /somecode/dp/Command.java: -------------------------------------------------------------------------------- 1 | public class Command { 2 | public static void main(String[] args) { 3 | Client c = new Client(); 4 | Order order = c.createOrder(); // 顾客生成订单 5 | 6 | Taobao t = new Taobao(); 7 | t.receiveOrder(order); // 淘宝接收订单 8 | t.handleOrder(); // 淘宝处理订单 9 | } 10 | } 11 | 12 | class Taobao { 13 | private Order order; 14 | 15 | public void receiveOrder(Order order) { 16 | this.order = order; 17 | } 18 | 19 | // 处理订单 20 | public void handleOrder() { 21 | order.execute(); 22 | } 23 | } 24 | 25 | class Client { 26 | public Order createOrder() { 27 | Shops phone = new HuaWeiShop(); 28 | Order phoneOrder = new GoodsOrder(phone); 29 | return phoneOrder; 30 | } 31 | } 32 | 33 | interface Order { 34 | void execute(); 35 | } 36 | 37 | class GoodsOrder implements Order { 38 | private Shops shop; 39 | 40 | public GoodsOrder(Shops shop) { 41 | this.shop = shop; 42 | } 43 | 44 | public void execute() { 45 | String goods = shop.sell(); 46 | System.out.println(goods); 47 | } 48 | } 49 | 50 | abstract class Shops { 51 | protected String shopName; 52 | protected abstract String sell(); 53 | } 54 | 55 | class HuaWeiShop extends Shops { 56 | 57 | public HuaWeiShop() { 58 | this.shopName = "HUAWEI"; 59 | } 60 | 61 | public String sell() { 62 | return "HuaWei Phone"; 63 | } 64 | } -------------------------------------------------------------------------------- /somecode/dp/Component.java: -------------------------------------------------------------------------------- 1 | import java.util.ArrayList; 2 | import java.util.List; 3 | 4 | public class Component { 5 | /** 6 | * test/ 7 | * ├── a 8 | * ├── b 9 | * │ ├── 1.txt 10 | * │ └── d 11 | * │ └── 2.txt 12 | * └── c 13 | * └── 3.txt 14 | */ 15 | 16 | public static void main(String[] args) { 17 | // 创建文件节点 18 | File txt1 = new File("test/b/1.txt"); 19 | File txt2 = new File("test/b/d/2.txt"); 20 | File txt3 = new File("test/c/3.txt"); 21 | 22 | // 创建目录节点 23 | Directory test = new Directory("test/"); 24 | Directory a = new Directory("test/a/"); 25 | Directory b = new Directory("test/b/"); 26 | Directory c = new Directory("test/c/"); 27 | Directory d = new Directory("test/b/d/"); 28 | 29 | // 构造目录结构 30 | test.addNode(a); 31 | test.addNode(b); 32 | test.addNode(c); 33 | 34 | b.addNode(txt1); 35 | b.addNode(d); 36 | 37 | c.addNode(txt3); 38 | d.addNode(txt2); 39 | 40 | // 输出目录结构 41 | System.out.println(">>> dir test:"); 42 | test.printFile(); 43 | 44 | System.out.println(">>> dir b:"); 45 | b.printFile(); 46 | 47 | // 删除目录 b 后,再输出 test 目录 48 | test.removeNode(b); 49 | System.out.println(">>> dir test:"); 50 | test.printFile(); 51 | } 52 | } 53 | 54 | abstract class FileSystem { 55 | protected String path; 56 | 57 | public abstract void printFile(); 58 | } 59 | 60 | class File extends FileSystem { 61 | public File(String path) { 62 | this.path = path; 63 | } 64 | 65 | public void printFile() { 66 | System.out.println(path); 67 | } 68 | } 69 | 70 | class Directory extends FileSystem { 71 | private List nodes; // 用于存储节点 72 | 73 | public Directory(String path) { 74 | this.path = path; 75 | this.nodes = new ArrayList<>(); 76 | } 77 | 78 | public void printFile() { 79 | System.out.println(path); 80 | 81 | // 递归输出目录和文件 82 | for (FileSystem node: nodes) { 83 | node.printFile(); 84 | } 85 | } 86 | 87 | public void addNode(FileSystem node) { 88 | nodes.add(node); 89 | } 90 | 91 | public void removeNode(FileSystem node) { 92 | nodes.remove(node); 93 | } 94 | } -------------------------------------------------------------------------------- /somecode/dp/Decorator.java: -------------------------------------------------------------------------------- 1 | public class Decorator { 2 | public static void main(String[] args) { 3 | // 只有一份清汤锅底 4 | HotPot hotpot = new SoupPot(); 5 | hotpot.printMenu(); 6 | 7 | // 清汤锅底 + 蔬菜 8 | hotpot = new VegetablesDish(hotpot); 9 | hotpot.printMenu(); 10 | 11 | // 清汤锅底 + 蔬菜 + 羊肉 12 | hotpot = new MuttonDish(hotpot); 13 | hotpot.printMenu(); 14 | 15 | // 清汤锅底 + 蔬菜 + 羊肉 + 可乐 16 | hotpot = new ColaDish(hotpot); 17 | hotpot.printMenu(); 18 | 19 | // 清汤锅底 + 蔬菜 + 羊肉 + 可乐 + 蔬菜 20 | hotpot = new VegetablesDish(hotpot); 21 | hotpot.printMenu(); 22 | } 23 | } 24 | 25 | class HotPot { 26 | protected String desc = "HotPot"; 27 | protected double price = 0; 28 | 29 | public String description() { 30 | return desc; 31 | } 32 | 33 | public double cost() { 34 | return price; 35 | } 36 | 37 | public void printMenu() { 38 | System.out.println("菜单:" + description() + " 消费总价:" + cost()); 39 | } 40 | } 41 | 42 | class SideDish extends HotPot { 43 | protected HotPot hotpot; 44 | 45 | public double cost() { 46 | return hotpot.cost() + price; 47 | }; 48 | 49 | public String description() { 50 | return hotpot.description() +" + "+ desc; 51 | }; 52 | } 53 | 54 | class SoupPot extends HotPot { 55 | public SoupPot() { 56 | desc = "Soup"; 57 | price = 5; 58 | } 59 | } 60 | 61 | class SpicyPot extends HotPot { 62 | public SpicyPot() { 63 | desc = "Spicy"; 64 | price = 7; 65 | } 66 | } 67 | 68 | class VegetablesDish extends SideDish { 69 | public VegetablesDish(HotPot hotpot) { 70 | this.hotpot = hotpot; 71 | desc = "Vegetables"; 72 | price = 3; 73 | } 74 | } 75 | 76 | class MuttonDish extends SideDish { 77 | public MuttonDish(HotPot hotpot) { 78 | this.hotpot = hotpot; 79 | desc = "Mutton"; 80 | price = 6; 81 | } 82 | } 83 | 84 | class ColaDish extends SideDish { 85 | public ColaDish(HotPot hotpot) { 86 | this.hotpot = hotpot; 87 | desc = "Cola"; 88 | price = 2; 89 | } 90 | } -------------------------------------------------------------------------------- /somecode/dp/Facede.java: -------------------------------------------------------------------------------- 1 | public class Facede { 2 | public static void main(String[] args) { 3 | // Vegetables v = new Vegetables(); 4 | // v.bugVegetables(); 5 | // v.washVegetables(); 6 | // v.fryVegetables(); 7 | // 8 | // Rice r = new Rice(); 9 | // r.fryRice(); 10 | // 11 | // Bowl b = new Bowl(v, r); 12 | // b.prepare(); 13 | // 14 | // System.out.println("xiao ming is having a meal."); 15 | // 16 | // b.washBowl(); 17 | 18 | Nanny n = new Nanny(); 19 | n.prepareMeal(); 20 | 21 | System.out.println("xiao ming is having a meal."); 22 | 23 | n.cleanUp(); 24 | } 25 | } 26 | 27 | class Nanny { 28 | private Vegetables v; 29 | private Rice r; 30 | private Bowl b; 31 | 32 | public Nanny() { 33 | v = new Vegetables(); 34 | r = new Rice(); 35 | b = new Bowl(v, r); 36 | } 37 | 38 | public void prepareMeal() { 39 | v.bugVegetables(); 40 | v.washVegetables(); 41 | v.fryVegetables(); 42 | 43 | r.fryRice(); 44 | 45 | b.prepare(); 46 | } 47 | 48 | public void cleanUp() { 49 | b.washBowl(); 50 | } 51 | } 52 | 53 | class Vegetables { 54 | public void bugVegetables() { 55 | System.out.println("buying vegetables."); 56 | } 57 | 58 | public void washVegetables() { 59 | System.out.println("washing vegetables."); 60 | } 61 | 62 | public void fryVegetables() { 63 | System.out.println("frying vegetables."); 64 | } 65 | 66 | public void toBowl() { 67 | System.out.println("putting the vegetables into the bowl."); 68 | } 69 | } 70 | 71 | class Rice { 72 | public void fryRice() { 73 | System.out.println("frying rice."); 74 | } 75 | 76 | public void toBowl() { 77 | System.out.println("putting the rice into the bowl."); 78 | } 79 | } 80 | 81 | class Bowl { 82 | private Vegetables vegetables; 83 | private Rice rice; 84 | 85 | public Bowl(Vegetables vegetables, Rice rice) { 86 | this.vegetables = vegetables; 87 | this.rice = rice; 88 | } 89 | 90 | // 盛好饭菜 91 | public void prepare() { 92 | vegetables.toBowl(); 93 | rice.toBowl(); 94 | } 95 | 96 | public void washBowl() { 97 | System.out.println("washing bowl."); 98 | } 99 | } -------------------------------------------------------------------------------- /somecode/dp/FactoryMethod.java: -------------------------------------------------------------------------------- 1 | public class FactoryMethod { 2 | public static void main(String[] args) { 3 | DrinkStore store = new DrinkStore(); 4 | 5 | Drink appleDrink = store.sellDrink("apple"); 6 | Drink bananaDrink = store.sellDrink("banana"); 7 | Drink orangeDrink = store.sellDrink("orange"); 8 | 9 | System.out.println(appleDrink); 10 | System.out.println(bananaDrink); 11 | System.out.println(orangeDrink); 12 | } 13 | } 14 | 15 | abstract class DrinkStoreAbstract { 16 | 17 | // final 防止子类覆盖 18 | public final Drink sellDrink(String flavor) { 19 | 20 | Drink drink = factoryMethod(flavor); // 使用实例 21 | 22 | drink.packing(); 23 | 24 | return drink; 25 | } 26 | 27 | // 子类必须实现 28 | protected abstract Drink factoryMethod(String flavor); 29 | } 30 | 31 | 32 | class DrinkStore extends DrinkStoreAbstract { 33 | 34 | public Drink factoryMethod(String flavor) { 35 | Drink drink; 36 | 37 | if (flavor.equals("apple")) { 38 | drink = new DrinkApple(); 39 | } else if (flavor.equals("banana")) { 40 | drink = new DrinkBanana(); 41 | } else if (flavor.equals("orange")) { 42 | drink = new DrinkOrange(); 43 | } else { 44 | drink = new Drink(); 45 | } 46 | 47 | return drink; 48 | } 49 | } 50 | 51 | 52 | class Drink { 53 | public void packing() { 54 | // 55 | } 56 | } 57 | 58 | class DrinkApple extends Drink { 59 | } 60 | 61 | class DrinkBanana extends Drink { 62 | } 63 | 64 | class DrinkOrange extends Drink { 65 | } 66 | -------------------------------------------------------------------------------- /somecode/dp/Observers.java: -------------------------------------------------------------------------------- 1 | import java.util.ArrayList; 2 | 3 | public class Observers { 4 | public static void main(String[] args) { 5 | ConcreteSubject s = new ConcreteSubject(); 6 | ConcreteObserver o1 = new ConcreteObserver("o1"); 7 | ConcreteObserver o2 = new ConcreteObserver("o2"); 8 | 9 | s.registerObserver(o1); // 注册 o1 10 | s.registerObserver(o2); // 注册 o2 11 | s.notifyObservers("info1"); // 向观察者通知消息 12 | 13 | System.out.println("remove observer o1"); 14 | 15 | s.removeObserver(o1); // 移除 o1 16 | s.notifyObservers("info2"); // 再向观察者通知消息 17 | } 18 | } 19 | 20 | interface Subject { 21 | void registerObserver(Observer o); 22 | void removeObserver(Observer o); 23 | void notifyObservers(String info); 24 | } 25 | 26 | interface Observer { 27 | void update(String info); 28 | } 29 | 30 | class ConcreteSubject implements Subject { 31 | private final ArrayList observers; 32 | 33 | public ConcreteSubject() { 34 | observers = new ArrayList(); 35 | } 36 | 37 | public void registerObserver(Observer o) { 38 | observers.add(o); 39 | } 40 | 41 | public void removeObserver(Observer o) { 42 | observers.remove(o); 43 | } 44 | 45 | public void notifyObservers(String info) { 46 | for (Observer o: observers) { 47 | o.update(info); 48 | } 49 | } 50 | } 51 | 52 | class ConcreteObserver implements Observer { 53 | private final String name; 54 | 55 | public ConcreteObserver(String name) { 56 | this.name = name; 57 | } 58 | 59 | public void update(String info) { 60 | System.out.println(this.name + " get info: " + info); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /somecode/dp/ProxyPattern.java: -------------------------------------------------------------------------------- 1 | import java.lang.reflect.InvocationHandler; 2 | import java.lang.reflect.Proxy; 3 | 4 | public class ProxyPattern { 5 | public static void main(String[] args) { 6 | 7 | } 8 | } 9 | 10 | interface ServerInterface { 11 | void handleRequest(); 12 | } 13 | 14 | class Server implements ServerInterface { 15 | public void handleRequest() { 16 | // 处理过程 17 | System.out.println("handle client request."); 18 | } 19 | } 20 | 21 | //class ServerProxy implements ServerInterface { 22 | // private Server server; 23 | // 24 | // public ServerProxy(Server server) { 25 | // this.server = server; 26 | // } 27 | // 28 | // public void handleRequest() { 29 | // long startTime = System.currentTimeMillis(); 30 | // 31 | // // 调用原始类 32 | // server.handleRequest(); 33 | // 34 | // long endTime = System.currentTimeMillis(); 35 | // 36 | // long reqTime = endTime - startTime; 37 | // System.out.println(reqTime); 38 | // } 39 | //} 40 | 41 | class ServerProxy extends Server { 42 | public void handleRequest() { 43 | long startTime = System.currentTimeMillis(); 44 | 45 | // 调用原始类 46 | super.handleRequest(); 47 | 48 | long endTime = System.currentTimeMillis(); 49 | 50 | long reqTime = endTime - startTime; 51 | System.out.println(reqTime); 52 | } 53 | } -------------------------------------------------------------------------------- /somecode/dp/SimpleFactory.java: -------------------------------------------------------------------------------- 1 | public class SimpleFactory { 2 | public static void main(String[] args) { 3 | SimpleDrinkFactory factory = new SimpleDrinkFactory(); 4 | DrinkStore store = new DrinkStore(factory); 5 | 6 | Drink appleDrink = store.sellDrink("apple"); 7 | Drink bananaDrink = store.sellDrink("banana"); 8 | Drink orangeDrink = store.sellDrink("orange"); 9 | 10 | System.out.println(appleDrink); 11 | System.out.println(bananaDrink); 12 | System.out.println(orangeDrink); 13 | } 14 | } 15 | 16 | 17 | class DrinkStore { 18 | private SimpleDrinkFactory factory; 19 | 20 | public DrinkStore(SimpleDrinkFactory factory) { 21 | this.factory = factory; 22 | } 23 | 24 | public Drink sellDrink(String flavor) { 25 | Drink drink = factory.createDrink(flavor); 26 | 27 | drink.packing(); 28 | 29 | return drink; 30 | } 31 | } 32 | 33 | 34 | class SimpleDrinkFactory { 35 | public Drink createDrink(String flavor) { 36 | Drink drink; 37 | 38 | if (flavor.equals("apple")) { 39 | drink = new DrinkApple(); 40 | } else if (flavor.equals("banana")) { 41 | drink = new DrinkBanana(); 42 | } else if (flavor.equals("orange")) { 43 | drink = new DrinkOrange(); 44 | } else { 45 | drink = new Drink(); 46 | } 47 | 48 | return drink; 49 | } 50 | } 51 | 52 | 53 | class Drink { 54 | public void packing() { 55 | // 56 | } 57 | } 58 | 59 | class DrinkApple extends Drink { 60 | } 61 | 62 | class DrinkBanana extends Drink { 63 | } 64 | 65 | class DrinkOrange extends Drink { 66 | } 67 | -------------------------------------------------------------------------------- /somecode/dp/StatePattern.java: -------------------------------------------------------------------------------- 1 | public class StatePattern { 2 | public static void main(String[] args) { 3 | RoleStateMachine role = new RoleStateMachine(); 4 | 5 | // 初始状态为 StateA,积分为 0 6 | assert role.getCurrentState().equals("StateA"); 7 | assert role.getScore() == 0; 8 | 9 | role.y(); // 在状态 A 进行 y 操作 10 | 11 | // 在状态 A 时,没有 y 操作 12 | // 所以如果进行 y 操作,状态和积分都保持不变 13 | assert role.getCurrentState().equals("StateA"); 14 | assert role.getScore() == 0; 15 | 16 | role.x(); // 在状态 A 进行 x 操作 17 | assert role.getCurrentState().equals("StateB"); 18 | assert role.getScore() == 100; 19 | 20 | role.y(); // 在状态 B,进行 y 操作 21 | assert role.getCurrentState().equals("StateD"); 22 | assert role.getScore() == 300; 23 | 24 | role.z(); // 在状态 D,进行 z 操作 25 | assert role.getCurrentState().equals("StateC"); 26 | assert role.getScore() == 250; 27 | 28 | role.z(); // 在状态 C,进行 z 操作 29 | assert role.getCurrentState().equals("StateA"); 30 | assert role.getScore() == 200; 31 | 32 | System.out.println("Test OK."); 33 | } 34 | } 35 | 36 | abstract class State { 37 | protected String stateName; 38 | protected RoleStateMachine machine; 39 | 40 | void x() { 41 | // do nothing 42 | } 43 | 44 | void y() { 45 | // do nothing 46 | } 47 | 48 | void z() { 49 | // do nothing 50 | } 51 | 52 | // 获取当前状态名 53 | public String getStateName() { 54 | return stateName; 55 | } 56 | } 57 | 58 | class RoleStateMachine { 59 | private State currentState; // 当前状态 60 | private int score; // 积分 61 | 62 | public RoleStateMachine() { 63 | this.score = 0; 64 | this.currentState = new StateA(this); 65 | } 66 | 67 | // 当发生某个操作时需要转化到相应的状态 68 | // 用该方法进行设置 69 | public void setCurrentState(State state) { 70 | currentState = state; 71 | } 72 | 73 | // 获取当前状态 74 | public String getCurrentState() { 75 | return currentState.getStateName(); 76 | } 77 | 78 | // 获取积分 79 | public int getScore() { 80 | return score; 81 | } 82 | 83 | // 增加积分 84 | public void addScore(int score) { 85 | this.score += score; 86 | } 87 | 88 | // 减少积分 89 | public void delScore(int score) { 90 | this.score -= score; 91 | } 92 | 93 | // 状态机中也包含状态中的所有操作 94 | // 每个操作都委托给当前状态的相应操作来完成 95 | 96 | public void x() { 97 | currentState.x(); 98 | } 99 | 100 | public void y() { 101 | currentState.y(); 102 | } 103 | 104 | public void z() { 105 | currentState.z(); 106 | } 107 | } 108 | 109 | class StateA extends State { 110 | public StateA(RoleStateMachine machine) { 111 | this.machine = machine; 112 | this.stateName = "StateA"; 113 | } 114 | 115 | public void x() { 116 | machine.addScore(100); 117 | machine.setCurrentState(new StateB(machine)); 118 | } 119 | } 120 | 121 | class StateB extends State { 122 | public StateB(RoleStateMachine machine) { 123 | this.machine = machine; 124 | this.stateName = "StateB"; 125 | } 126 | 127 | public void x() { 128 | machine.addScore(100); 129 | machine.setCurrentState(new StateC(machine)); 130 | } 131 | 132 | public void y() { 133 | machine.addScore(200); 134 | machine.setCurrentState(new StateD(machine)); 135 | } 136 | } 137 | 138 | class StateC extends State { 139 | public StateC(RoleStateMachine machine) { 140 | this.machine = machine; 141 | this.stateName = "StateC"; 142 | } 143 | 144 | public void x() { 145 | machine.addScore(100); 146 | machine.setCurrentState(new StateD(machine)); 147 | } 148 | 149 | public void z() { 150 | machine.delScore(50); 151 | machine.setCurrentState(new StateA(machine)); 152 | } 153 | } 154 | 155 | class StateD extends State { 156 | public StateD(RoleStateMachine machine) { 157 | this.machine = machine; 158 | this.stateName = "StateD"; 159 | } 160 | 161 | public void z() { 162 | machine.delScore(50); 163 | machine.setCurrentState(new StateC(machine)); 164 | } 165 | } -------------------------------------------------------------------------------- /somecode/dp/Strategy.java: -------------------------------------------------------------------------------- 1 | public class Strategy { 2 | public static void main(String[] args) { 3 | Animal dog = new Dog(); 4 | Animal pig = new Pig(); 5 | Animal rabbit = new Rabbit(); 6 | 7 | dog.eatGrass(); 8 | pig.eatGrass(); 9 | rabbit.eatGrass(); 10 | } 11 | } 12 | 13 | abstract class Animal { 14 | protected EatGrassable eg; 15 | 16 | public Animal() { 17 | eg = null; 18 | } 19 | 20 | public void run() { 21 | System.out.println("I can run."); 22 | } 23 | 24 | public void drinkWater() { 25 | System.out.println("I can drink water."); 26 | } 27 | 28 | public void eatGrass() { 29 | if (eg != null) { 30 | eg.eatGrass(); 31 | } 32 | } 33 | 34 | protected abstract String type(); 35 | } 36 | 37 | class Dog extends Animal { 38 | public Dog() { 39 | // Dog 不能吃草 40 | eg = new EatNoGrass(); 41 | } 42 | 43 | public String type() { 44 | return "Dog"; 45 | } 46 | } 47 | 48 | class Pig extends Animal { 49 | public Pig() { 50 | eg = new EatGreenGrass(); 51 | } 52 | 53 | public String type() { 54 | return "Pig"; 55 | } 56 | } 57 | 58 | class Rabbit extends Animal { 59 | public Rabbit() { 60 | eg = new EatDogtailGrass(); 61 | } 62 | 63 | public String type() { 64 | return "Rabbit"; 65 | } 66 | } 67 | 68 | interface EatGrassable { 69 | void eatGrass(); 70 | } 71 | 72 | class EatGreenGrass implements EatGrassable { 73 | // 吃绿草 74 | public void eatGrass() { 75 | System.out.println("I can eat green grass."); 76 | } 77 | } 78 | 79 | class EatDogtailGrass implements EatGrassable { 80 | // 吃狗尾草 81 | public void eatGrass() { 82 | System.out.println("I can eat dogtail grass."); 83 | } 84 | } 85 | 86 | class EatNoGrass implements EatGrassable { 87 | // 不是真的吃草 88 | public void eatGrass() { 89 | System.out.println("I can not eat grass."); 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /somecode/dp/TemplateMethod.java: -------------------------------------------------------------------------------- 1 | public class TemplateMethod { 2 | public static void main(String[] args) { 3 | AppleBeverage apple = new AppleBeverage(true); 4 | apple.makeBeverage(); 5 | 6 | OrangeBeverage orange = new OrangeBeverage(false); 7 | orange.makeBeverage(); 8 | } 9 | } 10 | 11 | abstract class Beverage { 12 | protected boolean isSweet; 13 | 14 | // 榨果汁 15 | public abstract void squeezeJuice(); 16 | 17 | // 将果汁倒入杯中 18 | public abstract void juiceToCup(); 19 | 20 | // 向杯中倒入水 21 | public void waterToCup() { 22 | System.out.println("pour water into the cup"); 23 | } 24 | 25 | // 向杯中倒入白糖 26 | public void sugarToCup() { 27 | System.out.println("pour sugar into the cup"); 28 | } 29 | 30 | // 制作苹果饮料 31 | public final void makeBeverage() { 32 | squeezeJuice(); 33 | juiceToCup(); 34 | waterToCup(); 35 | 36 | if (isSweet) { 37 | sugarToCup(); 38 | } 39 | } 40 | } 41 | 42 | 43 | class AppleBeverage extends Beverage { 44 | public AppleBeverage(boolean isSweet) { 45 | this.isSweet = isSweet; 46 | } 47 | 48 | public void squeezeJuice() { 49 | System.out.println("squeeze apple juice"); 50 | } 51 | 52 | public void juiceToCup() { 53 | System.out.println("pour the apple juice into the cup"); 54 | } 55 | } 56 | 57 | class OrangeBeverage extends Beverage { 58 | public OrangeBeverage(boolean isSweet) { 59 | this.isSweet = isSweet; 60 | } 61 | 62 | public void squeezeJuice() { 63 | System.out.println("squeeze orange juice"); 64 | } 65 | 66 | public void juiceToCup() { 67 | System.out.println("pour the orange juice into the cup"); 68 | } 69 | } 70 | 71 | /* 72 | class AppleBeverage { 73 | private boolean isSweet; 74 | 75 | public AppleBeverage(boolean isSweet) { 76 | this.isSweet = isSweet; 77 | } 78 | 79 | // 把苹果榨成苹果汁 80 | public void squeezeAppleJuice() { 81 | System.out.println("squeeze apple juice"); 82 | } 83 | 84 | // 将苹果汁倒入杯中 85 | public void appleJuiceToCup() { 86 | System.out.println("pour the apple juice into the cup"); 87 | } 88 | 89 | // 向杯中倒入水 90 | public void waterToCup() { 91 | System.out.println("pour water into the cup"); 92 | } 93 | 94 | // 向杯中倒入白糖 95 | public void sugarToCup() { 96 | System.out.println("pour sugar into the cup"); 97 | } 98 | 99 | // 制作苹果饮料 100 | public void makeAppleBeverage() { 101 | squeezeAppleJuice(); 102 | appleJuiceToCup(); 103 | waterToCup(); 104 | 105 | if (isSweet) { 106 | sugarToCup(); 107 | } 108 | } 109 | } 110 | 111 | class OrangeBeverage { 112 | private boolean isSweet; 113 | 114 | public OrangeBeverage(boolean isSweet) { 115 | this.isSweet = isSweet; 116 | } 117 | 118 | // 把橙子榨成橙汁 119 | public void squeezeOrangeJuice() { 120 | System.out.println("squeeze orange juice"); 121 | } 122 | 123 | // 将橙汁倒入杯中 124 | public void orangeJuiceToCup() { 125 | System.out.println("pour the orange juice into the cup"); 126 | } 127 | 128 | // 向杯中倒入水 129 | public void waterToCup() { 130 | System.out.println("pour water into the cup"); 131 | } 132 | 133 | // 向杯中倒入白糖 134 | public void sugarToCup() { 135 | System.out.println("pour sugar into the cup"); 136 | } 137 | 138 | // 制作橙子饮料 139 | public void makeOrangeBeverage() { 140 | squeezeOrangeJuice(); 141 | orangeJuiceToCup(); 142 | waterToCup(); 143 | 144 | if (isSweet) { 145 | sugarToCup(); 146 | } 147 | } 148 | } 149 | */ -------------------------------------------------------------------------------- /somecode/ml/naive_bayes/test_data/test_fun.txt: -------------------------------------------------------------------------------- 1 | 娱乐---演技扛把子 都无法阻止《新鹿鼎记》扑街 这不才是更悲哀的吗? 2 | 娱乐---德云社官宣开箱后,真正的重头戏是这2个大型演出,豪配顶尖阵容 3 | 娱乐---肖战传来捷报,宣传视频播放量突破400万,粉丝太给力 4 | 娱乐---网络电视剧《狼殿下》热播,但浪费了一个电影咖,这到底尴尬了谁 5 | 娱乐---因为骂粉丝?网曝灵超在机场和路人起冲突,木子洋三次阻拦 6 | 娱乐---已经举办八年的《中国好声音》,除了张碧晨,你还能记得谁? 7 | 娱乐---淘气电影日爆 | 2021年漫威很忙!8部作品上映,7部作品开拍 8 | 娱乐---綦美合成王一博老板?疑似杜华出面宣布主权,王一博人间唐僧实锤 9 | 娱乐---市井烟火的谍战剧 也是当代“打工人”的反光镜 10 | 娱乐---张艺兴给练习生定标准:最低目标就是我!和黄子韬的管理方式不同 11 | 娱乐---英雄的血保卫江南的“香”《斗香》即将亮相东方影视频道 12 | 娱乐---易烊千玺工作室发布新预告,《野花》为开场第一幕,让人惊喜期待 13 | 娱乐---罗马教皇点赞不雅照,巴西模特感谢官方祝福,称自己也可以上天堂 14 | 娱乐---结婚12年假恩爱?港姐诉苦夫妻关系,方中信没玩够产女才给名分 15 | 娱乐---豪门夜宴:周迅独自美丽,杨幂和宋茜热聊,陈伟霆像“纨绔子弟” 16 | 娱乐---李沁问肖战是否会因戏生情,肖战灵机一转,给出了一个完美答案 17 | 娱乐---她曾被成龙力捧,连黎明都对她着迷不已,可如今却美人大变样 18 | 娱乐---8部时装剧必追清单!陈星旭《一见倾心》、张予曦《南风知我意》不怕闹剧荒 19 | 娱乐---烫手山芋?曝肖战想要签约乐华娱乐,但是被杜华拒绝了 20 | 娱乐---因为他的暴露,肖战和王一博很可能会彻底反目,粉丝却连连叫好 21 | 娱乐---为黑杨幂专门设立组织,9年过去了,这批人把杨幂逼成了人生赢家 22 | 娱乐---BLACKPINK将获得2020年度最佳组合奖 23 | 娱乐---12年好声音导师的神操作,证明这是最干净的一届 24 | 娱乐---阿娇又穿错衣服了,黑色连衣裙配长靴五五分身,高颜值就是任性 25 | 娱乐---李易峰卷发毛衣造型帅气迷人 透露“顾耀东”后期有成长不会“菜” 26 | 娱乐---电影《三重身份》今日爱奇艺强势来袭 爱情权利阴谋纵横交错 27 | 娱乐---至上励合男团为啥“糊”成这样?成员的瓜,一个比一个“劲爆” 28 | 娱乐---《蓝莓孵化营》项目人首次“团战”,王霏霏助力直播荐国货 29 | 娱乐---KPL:掰掰营销手段太过,诺言家人都被波及,何时才能不卖情怀? 30 | 娱乐---韩国网红主播录节目发生意外 被砸成脑震荡 31 | 娱乐---马保国被人鬼畜后,母亲还遭人辱骂,愤怒回击:我坐车去掐死你 32 | 娱乐---172girls遇见南京,粉丝比the9还多 33 | 娱乐---郑爽又素颜出镜录制宣传片,皮肤白皙气质清新,俏皮吐舌状态好 34 | 娱乐---娱乐圈爆料肖战、王一博、迪丽热巴、吴亦凡、杨紫、宋茜 35 | 娱乐---有种“心机女孩”叫鞠婧祎,自拍照偷偷藏起这个,怪不得这么美! 36 | 娱乐---《跑男》收官大合影,baby被挤一角,看清C位的女人,“气哕”了 37 | 娱乐---首次!马国明汤洛雯公然秀甜蜜,手牵手举V字手势,抿嘴微笑 38 | 娱乐---易烊千玺周冬雨再入围星辰大海候选,80人进32个,网友:竞争激烈 39 | 娱乐---金莎婉拒盛况,不再继续约会,发文感谢对方却“话里有话” 40 | 娱乐---时隔5年,唐人再出“民国奇幻”大剧,能否超越《无心法师》? 41 | 娱乐---蒋大为已不是“中国人”看看他怎么回答的,真相终于大白 42 | 娱乐---鞠婧祎许佳琪4年前参加《快本》,站在一起,这是11cm的身高差 43 | 娱乐---钢铁侠是如何破解蜘蛛侠身份的只因为他注意到了一个隐藏细节! 44 | 娱乐---最受争议团员,NPC林彦俊,火箭少女杨超越,看到THE9大家都知道 45 | 娱乐---狼殿下赢了数据,输了口碑?粉丝:肖战已经赢了 46 | 娱乐---女儿追星热巴,却不小心撞上妈妈追星华晨宇,母女俩对话笑翻众人 47 | 娱乐---手腕上画千纸鹤,细节控的千玺弟弟,真的很宠粉 48 | 娱乐---王一博录制《华彩少年》,匆忙赶路不理左右,一看造型:太接地气了 49 | 娱乐---硬糖少女张艺凡泪奔挽留粉丝,拜托粉丝别走:陪我们久一点 50 | 娱乐---赵丽颖跟这些古装美女撞衫,第7个最惊艳,第3个美过郑爽 51 | 娱乐---女子整容成芭比直播卸妆,众多网友不淡定,心疼为什么整容成这样 52 | 娱乐---直男票选THE9成员喜爱程度,刘雨昕57,虞书欣13,许佳琪84 53 | 娱乐---陈卓璇攀岩到顶后不敢下来,听她脱口而出的名字,关系好坏很明显 54 | 娱乐---R1SE张颜齐给路人跳舞,小姐姐4个字评价,尽显选秀爱豆的心酸 55 | 娱乐---什么是snh48一个美妙的组合?许佳琪的床帘很短,许杨玉琢的太多了 56 | 娱乐---BLACKPINK Jennie,透过画面出现的模特光环 57 | 娱乐---吉克隽逸舞台公然卸妆, 看镜头拍的卸妆纸后, 才知女星妆容有多厚 58 | 娱乐---HOTTOYS COSBABY 漫威丧尸复仇者 Q版迷你人偶 59 | 娱乐---迪丽热巴蜡像展出6个月变样? 头发炸毛刘海变直, 网友: 经历了啥 60 | 娱乐---《向往的生活》男1号小H惊喜出现探班张子枫 61 | 娱乐---TFBOYS谁最有钱王源、王俊凯2亿多,不被看好的易烊千玺则最牛 62 | 娱乐---肖战,白鹿,徐正溪,宋茜,蔡徐坤,吴谨言,陈瑶,邓伦,唐嫣 63 | 娱乐---《雍正王朝》中张廷玉为何只收了年羹尧四样礼物中的天麻! 64 | 娱乐---明星八卦:李易峰新戏?朱颜女主溜人?路人缘重不重要? 65 | 娱乐---当漫威英雄变为快递小哥,钢铁侠最酷炫,绿巨人收获最多差评? 66 | 娱乐---腐团儿海边秀吊带泳装,无意暴露奢侈生活,戴着的项链值20万 67 | 娱乐---央视选秀照惹争议,被指P图掩盖选手真实颜值,虚拟人物太模式化 68 | 娱乐---明星之间“撞脸”是啥体验周冬雨和杨颖还好,看到张子枫瞬间脸盲了 69 | 娱乐---女星防走光,杨紫用手捂着,戚薇翘二郎腿,网友:就她最机智! 70 | 娱乐---有种“没想到”叫明星的宠物名,宋茜和朱正廷还好,鞠婧祎的笑翻网友 71 | 娱乐---37岁“雷神”和弟弟打高尔夫,秀健硕胸肌,带儿子在草坪不穿鞋放飞自我 72 | 娱乐---林志颖携妻儿出游,Kimi罕露正脸更帅了,与两弟弟同框超温馨 73 | 娱乐---SM新女团柳智敏戴皇冠暗黑风华丽,气场输伴舞,恶女人设反圈粉 74 | 娱乐---看完《狼殿下》,有3句话,我想和肖战粉丝聊聊 75 | 娱乐---有一种“整容”叫明星出道前,肖战不算啥,鞠婧祎我忍了,蔡徐坤我忍不了 76 | 娱乐---泽塔奥特曼年底播完,2021年三部新剧已定,你对哪部感兴趣 77 | 娱乐---硬糖少女直播生图曝光,张艺凡惊艳刘些宁霸气,希林却让人意外! 78 | 娱乐---德云社李鹤东生日,粉丝的礼物里竟有大量现金,他的做法让人佩服 79 | 娱乐---THE9团综VS硬糖少女团综,前者群星荟萃,后者玩得很开心 80 | 娱乐---周四八卦汇总虞书欣,乔诗语肖战,迪丽热巴杨洋,乐华公司 81 | 娱乐---TVB重新部署捧人计划,85后花旦纷纷上位,视后竞争者太弱无看点 82 | 娱乐---孙允珠:姑苏清婉早春白菊飘领古典裙写真 83 | 娱乐---娱乐你问我答之王一博和赵丽颖关系如何华晨宇遭双重威胁 84 | 娱乐---毒液不能附身的4人,死侍差点将它逼疯,最后一个单挑过灭霸 85 | 娱乐---赵丽颖吃龙虾被烫到嘴,吐到李浩菲碗里,结果下一秒举动真实了 86 | 娱乐---周深精彩放送:大鱼变“草”鱼,勤深深组合与费玉清同台演唱 87 | 娱乐---内涵队友继伊能静爆料后郑希怡也发声女团没有真友谊! 88 | 娱乐---金莎与盛况一起逛超市、荡秋千和滑雪被偶遇,拒绝对方后仍有往来 89 | 娱乐---韩娱组合又损大将,程潇改认证去宇宙少女,张艺兴如何选择 90 | 娱乐---文艺女青年偏爱眼镜+乐器,江一燕曾轶可万茜王珞丹同款造型 91 | 娱乐---本以为黄明昊指甲够脏了,看到王俊凯的指甲缝后,我无言以对 92 | 娱乐---王一博涂口红,王俊凯涂口红,华晨宇涂口红,看到沈腾笑出猪叫 93 | 娱乐---爱情公寓:曾小贤的床,美嘉的床,悠悠的床,看到张伟:太心酸了 94 | 娱乐---宋茜挑战“毒液袜”,效果透光,直接凹出“电棒腿”A翻全场 95 | 娱乐---完整版来袭!周迅王一博浪漫写真曝光,差23岁姐弟咋就这么般配 96 | 娱乐---迪丽热巴的微博认证, 暴露事业尴尬, 大奖也难拯救! 97 | 娱乐---《上线吧华彩少年》定档,王一博易烊千玺同台,专业选手成看点 98 | 娱乐---林青霞发文辟谣离婚传闻今年生日一家人团聚,祖孙三代为我祝贺 99 | 娱乐---肖战为电影《气球》宣传助力,皮肤黝黑堪比疾冲 100 | 娱乐---保健锤boy,新的肖战《王牌》路透一次性完成 101 | 娱乐---TVB 53周年台庆尽显寒酸,一线明星纷纷缺席转战内地,拍雷剧也愿意 102 | 娱乐---央视选秀节目官宣学员名单,35位华彩少年来袭,还有1位虚拟选手 103 | 娱乐---被玻尿酸毁了的女星娄艺潇脸部变形,曹颖让人认不出 104 | 娱乐---有一种霸气叫“白浅”,有一种呆萌叫“锦觅”,有一种绝望就叫她! 105 | 娱乐---官方视听大数据解读肖战新剧热度,这实绩可任人嘲! 106 | 娱乐---关晓彤节目使劲摁压自己的鼻子,看到她扭曲的程度,粉丝都替她疼 107 | 娱乐---华晨宇自拍,鹿晗自拍,王俊凯自拍,看到王一博女生不敢尝试的角度 108 | 娱乐---肖战《余生》定档导演亲自许诺官宣播出时间,又是爆款预定了 109 | 娱乐---张艺凡说自己不减肥时,有谁注意到赵粤的表情真当粉丝看不见啊 110 | 娱乐---单依纯《好声音》夺冠后采访,下意识动作让人心疼,蓝台做个人吧 111 | 娱乐---乐华艺人签约公司年龄,黄明昊孟美岐13岁,看到程潇又是未成年 112 | 娱乐---《陈情令》花絮来袭,肖战王一博互换角色,似献舍归来引粉丝尖叫 113 | 娱乐---201121 防弹少年团智旻参与歌曲《Disease》三分钟内完成bridge,拥有天才音乐人资质 114 | 娱乐---泰王曾主动牵手西拉米,满脸骄傲和宠溺,苏提达表情暴露了心思 115 | 娱乐---R1SE硬糖少女齐发“我心动了”,疑为新综艺预热,要配对恋爱的节奏 116 | 娱乐---女星被强制“卸妆”杨幂油光满面,Lisa肤色真实,她却一秒圈粉 117 | 娱乐---张艺凡这么瘦,还穿“胖子鞋”跳舞,一蹲下后脚趾都看见了! 118 | 娱乐---同是穿人鱼裙,本以为热巴够美了,看到蒋依依后,是美人鱼吗 119 | 娱乐---“明明是爆款你却没追”的甜宠剧,主演都是神仙颜,你中了几个? 120 | 娱乐---李亚鹏大方认爱超模女友,女方气质清冷神似王菲,双方父母见面 121 | 娱乐---LPL主持小钰全明星投票第一引发大量吐槽,几种不同观点,你更倾向哪种? 122 | 娱乐---女星穿婚纱有多美?刘诗诗刘亦菲好仙,看到郑爽:这是换脸了? 123 | 娱乐---明星课堂朱一龙头脑清醒周雨彤资源不算好张一山资源下滑 124 | 娱乐---20191121最新娱乐小八卦迪丽热巴、王俊凯、易烊千玺、彭昱畅 125 | -------------------------------------------------------------------------------- /somecode/ml/naive_bayes/test_data/test_health.txt: -------------------------------------------------------------------------------- 1 | 健康---它是木材中的“贵族”,价值胜黄金,中医用它行气止痛、温中平喘 2 | 健康---舌头厚白,有齿痕,大便稀,是什么原因能调理好吗 3 | 健康---高血压的“祸根”被找到,不只是盐,每天喝点它,血压悄悄降下来 4 | 健康---人之衰老,肝为先导,滋肝养肝“三步走”,肝好一切都好 5 | 健康---慢粒白血病国产格列卫一月多少钱? 6 | 健康---13岁女孩卵巢多发畸胎瘤扭转三周,双向转诊完成接力救治 7 | 健康---女性眼角细纹多,推荐常吃以下食物,补血养颜,清肠刮油 8 | 健康---忽视血压控制,突发性脑出血盯上年轻人 9 | 健康---70后夫妻常吃1“酸”,胆固醇从10降到3.5,养护血管血脂清 10 | 健康---对身体最好的3种食物,健脾养胃,滋补身体,好处多多 11 | 健康---想要身体好,不妨多吃3种食物,排毒养颜,提高免疫力 12 | 健康---胡萝卜用油炒等于没吃,破坏营养!这样吃才好 13 | 健康---怎么做才能保护好肾脏牢记几种方式是最便宜的“养肾方” 14 | 健康---转告父母:3种食物是“失眠高手”,吃得越多,失眠就越难控制 15 | 健康---小儿推拿杨晓:山楂功效有哪些?山楂怎么吃最好?需要注意什么? 16 | 健康---天津瞰海轩阳性病例的密接者曾在唐山海港开发区一口腔诊所就医 17 | 健康---癌症有善恶,早期发现2类癌症,或许能治愈,别太早放弃 18 | 健康---健康辟谣 | 保温杯里泡这些东西,不养生反养毒? 19 | 健康---小小的腰痛,却被检查出癌症!癌症来袭时,腰部常常有这些症状 20 | 健康---降血糖不是少吃饭、多运动,而是坚持5件事,血糖稳定,延年益寿 21 | 健康---高血压一定要吃降压药吗一级高血压可试试这两味药食同源的中药 22 | 健康---食物胰岛素,糖尿病的“福音”,经常泡水喝,高血糖主动说拜拜 23 | 健康---糖尿病人,不想血糖飙升,除了甜食,4类食物也应该趁早忌口 24 | 健康---早晨是养血管的黄金段,血管专家支招:3种早餐别碰,有利降血脂 25 | 健康---秋冬季补益养生!坚果“七日食谱”,每天照着吃,养生又抗寒 26 | 健康---除了老年痴呆和帕金森,新研究又证实空气污染和抑郁症有关系 27 | 健康---幽门杆菌害怕什么常吃有助于消毒和减轻炎症,胃病会慢慢好转 28 | 健康---上班族、宝妈常腰痛?6个瑜伽体式,有效缓解腰痛,还能改善体态 29 | 健康---PD-L1单抗LP002联合化疗一线治疗肺癌! 30 | 健康---突然长麦粒肿是怎么回事?大多是这4个坏习惯在作怪,还不赶紧改掉 31 | 健康---支气管炎病因&预防 32 | 健康---想要预防乳腺增生,这3类食物得远离,小心把乳腺增生吃出来 33 | 健康---说起痔疮,日常要注意哪些呢? 34 | 健康---张文宏称浦东新冠肺炎病例为散发病例,冬春季各地仍存在风险 35 | 健康---对于糖尿病患者来说 无糖食品是不是可以放心吃 36 | 健康---关注丨这55种药品,降价了! 37 | 健康---血糖高者要改掉4种习惯,戒掉三类食物,糖尿病是健康的第1杀手 38 | 健康---怕冷手脚冰凉,你或是阳虚体质!6种食物帮助调理,它竟第一 39 | 健康---河南新增7例无症状感染者!上海2例本土新增病例详情公布!张文宏最新研判 40 | 健康---世卫组织:不建议使用抗病毒药物瑞德西韦治疗新冠 41 | 健康---戒不掉烟的人,每天抽烟别超“这个数”,损伤小了,肺也能舒服点 42 | 健康---肝癌患者“离开”前有前兆?这5个表现要谨记,坚持做好这5件事可养护肝脏 43 | 健康---饭后总是腹胀腹痛?可能是消化不良在作怪,这3个症状需警惕 44 | 健康---糖尿病在冬天最容易加重,过冬需注意这几点 45 | 健康---那是什么破坏了我们的健康呢?来看看这些危险的生活方式,有没有出现在你的生活中 46 | 健康---天然的“降压药”就藏在身边,每天泡水喝,血压能稳定下来! 47 | 健康---患上癌症,吃灵芝能治好吗灵芝,到底有何用处 48 | 健康---黄芪红枣枸杞茶的营养功效, 黄芪红枣枸杞茶的做法 49 | 健康---体内有癌,胸部先知!医生告诉你:肺癌来临时,胸部有什么症状 50 | 健康---抽烟几十年,开水里加点它,排出20年肺毒,养肺润肺,不得肺病 51 | 健康---超市常见的3种食物,值得天天吃一些,淡化皱纹、改善体质 52 | 健康---一个针对气血不畅的古方,可以治好一半内科病! 53 | -------------------------------------------------------------------------------- /somecode/ml/naive_bayes/test_data/test_sport.txt: -------------------------------------------------------------------------------- 1 | 体育---这次国安真把韩国球员踢急了:对手最后时刻1举动输球又输人! 2 | 体育---国乒世界冠军输韩国挨批评:把鸡窝发型换了,马龙樊振东谁这样? 3 | 体育---超级外援正式重返CBA!总决赛场均砍下27+14,再次扮演救世主 4 | 体育---伊藤美诚0-4惨败无缘决赛!国乒大将挥拳怒吼,日本一姐闭目冷笑 5 | 体育---国安终于雪耻!亚冠首次战胜首尔FC,热内西奥诡异换人惹恼大牌 6 | 体育---德媒:约维奇转会费4000万给了法兰克福,2000万给本菲卡 7 | 体育---1米5伊藤美诚太绝望!腿短够不到球趴倒桌上,跺脚发球却蹦飞了 8 | 体育---Shams:威少沃尔的交易讨论会在某个时间点再次活跃起来 9 | 体育---国乒单日双败!男女单四强正式产生:日韩独苗在列,最大黑马出炉 10 | 体育---伊藤美诚被打哭!谈到帅气教练又笑了,中国球迷留言起哄:在一起 11 | 体育---不满足于联盟第一!蒋兴权作出重要决定!无缘付豪?杨鸣早有暗示 12 | 体育---邓亚萍也服陈梦了!讲出她三胜孙颖莎的原因,小魔王根本打不动她 13 | 体育---杜锋朱芳雨都不是冤大头!范子铭实力如何,他们比谁都明白 14 | 体育---国乒女单再现大魔王,总决赛狂虐伊藤美诚,刘国梁终于安心了 15 | 体育---12冠王全华班打疯了!3-0赢双外援32分,朱婷李盈莹34分 16 | 体育---2-1疯狂庆祝!国安亚冠2连胜,两大外援破门,阿兰不满被换下 17 | 体育---姆巴佩福兰德分别双响小法点射,摩纳哥3-2逆转巴黎 18 | 体育---伊藤美诚太可爱!0-4输球后与王曼昱开心打闹,已把国乒当朋友 19 | 体育---伊藤美诚哭了,这次竟有些可怜,11月22日央视直播总决赛争冠 20 | 体育---巴黎半场连丢3球2-3遭摩纳哥逆转 21 | 体育---日媒批伊藤0-4溃败:屈辱+迷失!世界第2被打哭:我有新收获 22 | 体育---许昕1-4绝望出局,奥运单打席位遭重创!马龙距离六冠王差1胜 23 | 体育---小魔王惨败!陈梦4-0孙颖莎!大梦获得世界杯变自信了!附赛程 24 | 体育---孙颖莎遭遇3连败!0-4不敌陈梦无缘决赛,黄海诚观赛眉头紧锁 25 | 体育---2-1!国安登顶小组榜首创两纪录!阿兰MVP,3人被批评 26 | 体育---刘国梁邓亚萍说得对!国乒新一姐4:0横扫孙颖莎,奥运资格稳了 27 | 体育---11月21日总决赛预告,半决赛:樊振东张禹珍,谁来打伊藤美诚 28 | 体育---克洛普:不清楚球队冬窗的计划,会利用好现有的球员 29 | 体育---韩国猛将化身张本智和,得分也玩三连吼,却被樊振东4-1打趴 30 | 体育---国际乒联总决赛|陈梦和王曼昱会师女单决赛 31 | 体育---丢局点+决胜局崩盘!国乒大将3-4爆冷出局,无缘包揽男单四强 32 | 体育---总决赛樊振东打服张禹珍,采访时小胖不上记者的当,韩国黑马出局 33 | 体育---全华班25-14暴击双外援!朱婷两锤定音携李盈莹暴击争冠热门 34 | 体育---总决赛日本韩国都服了!王曼昱碾压伊藤美诚后说了什么?国乒巨浪 35 | 体育---怒吼庆祝22冠!国乒包揽复赛后4冠,刘国梁敢放弃女单老将吗? 36 | 体育---拉波特:福登有自己的风格不会把他和别人比,他会吸取教训 37 | 体育---强强对决被打成一边倒!天津送上海首败,朱婷李盈莹联手34分 38 | 体育---加盟紫金军团!哈勒尔转发身穿湖人球衣的合成图 39 | 体育---小魔王0-4惨败无缘决赛!43天遭3连杀,被陈梦12-1吊打 40 | 体育---林高远,心态如“林妹妹”?半决赛+央视直播:樊振东vs张禹珍 41 | 体育---陈梦战胜孙颖莎,赛后采访亲承一点优势,对结果表示意外 42 | 体育---格策:当年去拜仁的时机不对,本该继续全心专注提高自己 43 | 体育---对攻大战,王曼昱笑到了最后 44 | 体育---兜兜转转!阿里扎近三天被交易了三次 45 | 体育---更新:霍华德仍将考虑所有选项,目前没有达成协议 46 | 体育---马龙遇到难题!孙颖莎已经闯关失败,大满贯与世界第一狭路相逢 47 | 体育---瓦尔迪:梅西是足坛最佳,看着他踢球真是太棒了 48 | 体育---2020国际乒联总决赛 49 | 体育---亚冠:北京国安击败首尔FC 比赛还有一个小插曲 50 | 体育---罗马诺:米兰有意冬窗引进维罗纳中卫新星洛瓦托 51 | 体育---扎克-洛维:火箭现在不会让步,哈登能做的可能只有等待 52 | 体育---行政干预再生,不讲足球规律,足协陈戌源这就是你带来的改变? 53 | 体育---博格巴渴望与曼联解约!想明年自由转会,去皇马追逐大合同 54 | 体育---事故原因?36岁法国翼装飞行大师命丧沙漠,喷气飞翼有多危险? 55 | 体育---德拉季奇打趣:巴特勒来电说若我不续约他可能会扁我 56 | 体育---David Aldridge:开拓者依然希望能够续约卡梅罗-安东尼 57 | 体育---鲁尼:若限制头球次数能延长球员生命,那是合理的我会支持 58 | 体育---大爆冷!黑马4:3淘汰国乒世界冠军,半决赛又遇上樊振东 59 | 体育---廉颇老矣?小法不服!仅用半场就搞定大巴黎 60 | 体育---4-0伊藤美诚输了,王曼昱战胜日乒一姐!国乒包揽总决赛冠亚军 61 | 体育---火箭签换伍德触发硬帽,需用900万空间补齐6个阵容名额 62 | 体育---亚冠半场:费尔南多破门,国安1-0首尔 63 | 体育---刘国梁不安排王皓场外指导!反而派上44岁的老帅,帮助国乒立功 64 | 体育---尤文图斯伤病满营!对阵卡里亚里,C罗首发首次出任队长 65 | 体育---埃及U23主帅:除非利物浦同意,否则奥运会不征召萨拉赫 66 | 体育---国乒最后2劲敌被送回家!樊振东连胜黑马,伊藤美诚被打到没脾气 67 | 体育---伊藤美诚当众谢国乒!透露赢王艺迪因素:与国乒合练让我学到很多 68 | 体育---万厚良:可能今天是我职业生涯最后一场,没想到以这样的方式 69 | 体育---北京女排折损大将!主帅恳求排协给外援开绿灯,刘晓彤上场补位 70 | 体育---伊布称与米哈相爱已久,米哈:意甲后卫都害怕他 71 | 体育---在火箭和奇才讨论威少交易时,沃尔希望奇才将自己交易走 72 | 体育---小法:巴黎半场2球领先,我们知道他们下半场会留力欧冠 73 | 体育---沪媒:江苏夺冠等于足协杯冠军,人心胸不能太狭隘 74 | 体育---范弗利特将寻求一份年薪2000万美元以上的合同 75 | 体育---史上仅贝尔坦斯和库里曾以42%命中率场均投8.5+三分 76 | 体育---国安2-1首胜首尔,费尔南多闪击,阿兰献世界波 77 | 体育---恒大发亚冠小组赛首战水原三星海报 78 | 体育---从2-0到2-3!大巴黎崩盘爆大冷!13分钟丢2球,85分钟被绝杀 79 | 体育---真活久见!门将开大脚被风吹回,对方前锋轻松得分 80 | 体育---2-1,亚冠2连胜!恒大旧将破门,国安除魔咒小组登顶 81 | 体育---力压桑乔、法蒂、戴维斯,哈兰德荣膺欧洲金童奖 82 | 体育---瓜穆赛前就开怼?穆帅采访惹瓜帅暴怒:我不想说关于他的事了! 83 | 体育---火箭奇才讨论威少交易时,沃尔明确希望奇才将自己交易 84 | 体育---湖人晒施罗德上赛季数据:卫冕冠军得到联盟替补得分王 85 | 体育---王艺迪差点掀翻日乒一姐,半决赛:伊藤对王曼昱,孙颖莎VS陈梦 86 | 体育---签约哈勒尔且算上戴维斯的顶薪后,湖人距离硬帽仅1600万 87 | 体育---穆帅批斯特林诈伤避战 瓜帅:???他是医生吗 88 | 体育---贝弗利祝贺杰迈克尔-格林:你们都没错,祝贺我的哥们 89 | 体育---乒乓球 | 国际乒联总决赛:伊藤美诚无缘决赛 90 | 体育---梅西代表巴萨41次面对马竞,24胜10平7负,打进32球 91 | 体育---梅森-普拉姆利三年2500万美元签约活塞 92 | 体育---樊振东4-1张禹珍 晋级男单决赛 93 | 体育---利物浦新训练基地一天停电三次,其中一次是在渣叔开会期间 94 | 体育---3场9球,莱万当选德甲十月最佳球员 95 | 体育---瓜迪奥拉回怼穆里尼奥:你是个医生吧 96 | 体育---真会说话!记者问陈梦是否会看伊藤美诚的比赛,陈梦给出满分答案 97 | 体育---皇马前锋约维奇新冠阳性,阿扎尔转阴进入大名单 98 | 体育---全线飘红!中超队亚冠开局4连胜,恒大主帅宣言:夺冠机会来了 99 | 体育---国乒包揽总决赛冠亚军!陈梦遇小将力争4连冠,小胖再次大战马龙 100 | 体育---第2支降级队诞生:昔日亚冠劲旅2年降2级,从中超急速去中乙 101 | 体育---国乒喜讯!又一主力彻底复苏,横扫伊藤美诚进决赛,陈梦如愿了 102 | 体育---瓜帅:穆帅质疑我拒绝让球员去国家队?或许他是医生吗? 103 | 体育---若福克斯下赛季入选一二三阵,对应合同1.96/1.83/1.7亿 104 | 体育---国王将与哈里-贾尔斯分道扬镳 105 | 体育---申花主帅崔康熙今晚迎战老熟人 蔚山现代3名国脚能否上场仍待定 106 | 体育---马龙4-1许昕 晋级男单决赛 107 | 体育---北青:为保证赛事公平,新赛季中超将踢满30轮 108 | 体育---津沪之战 天女力拼对手 109 | 体育---罗体:国米也在考虑让埃里克森和弗雷德互换东家 110 | 体育---帕特里克-帕特森将以一份一年合同续约快船 111 | 体育---法尔克:聚勒确实有意去英超,想为曼联踢球 112 | 体育---签换得到格里芬?掘金记者:消息人士说那不可能发生 113 | 体育---3-2,耻辱2连降!昔日中超冠军堕入中乙,中甲升班马齐齐保级 114 | 体育---中国女排又一大名单出炉!全是希望之星,16岁小副攻身高196 115 | 体育---真被陈梦说中了!21岁世界冠军复仇战干得漂亮,孙颖莎留了1手 116 | 体育---12-1!孙颖莎三战全败,陈梦创造历史,冲击总决赛4连冠 117 | 体育---国乒再爆冷!林高远3-4出局,又输给外国人,无缘包揽男单前四 118 | 体育---国乒教练组提前收工!王曼昱4-0完胜伊藤美诚,对手脸色都变了 119 | 体育---陈梦被冷热嘲讽!赢球后的表情被吐槽太无情,孙颖莎嘟嘴惹人心疼 120 | 体育---马龙罕见示弱!面对4连胜自己的樊振东:他最强,我将成为挑战者 121 | 体育---当霍华德与湖人谈判停滞时,恩比德开始对其进行招募 122 | 体育---凯尔特人想在交易中获得TJ-沃伦,但步行者视沃伦为基石 123 | 体育---骑士记者:湖人签下哈勒尔后,快船成为可能签下TT的球队 124 | 体育---2-3耻辱冷门!昔日中超队连降三级,掉入中乙,全队绝望崩溃 125 | 体育---哈勒尔IG与詹姆斯互动:知道的事情就不必解释了,老哥 126 | 体育---官方:森林狼送出詹姆斯-约翰逊,从雷霆得到卢比奥 127 | 体育---蒙特雷兹-哈勒尔2年1900万加盟湖人 128 | 体育---国乒“围剿”伊藤美诚,赛场之外一家亲 129 | 体育---交易得到乌布雷之前,勇士还尝试过从鹈鹕得到JJ-雷迪克 130 | 体育---掘金对自由球员以赛亚-哈尔滕施泰因感兴趣 131 | 体育---贾利尔-奥卡福两年合同签约活塞 132 | 体育---勒夫把德国足球带上了巅峰,也让德国足球滑落到低谷 133 | 体育---快来抢!中超带刀后卫外援将离队,鲁能成潜在下家,实力不输吉尔 134 | 体育---男单包揽冠亚军!樊振东4-1张禹珍,小胖压倒性胜利!央视直播 135 | 体育---酣畅淋漓!国乒“小魔王”横扫最强劲敌,连续两年与陈梦会师决赛 136 | 体育---Isola:伍德接近与火箭达成3年2700万美元合同 137 | 体育---湖人将与落选秀Tres Tinkle签下Exhibit 10合同 138 | 体育---决胜局7-0!伊藤美诚闯入四强,单挑国乒3巨头,争冠最大隐患 139 | 体育---雷霆上赛季首发+主教练+第六人目前只剩下亚历山大一人 140 | 体育---哈勒尔签约湖人,贝弗利发推表达不满:啥? 141 | 体育---Shams:杰迈克尔-格林2年1500万签约掘金 142 | 体育---Shams:小德里克-琼斯2年1900万签约开拓者 143 | 体育---活塞可能需要裁掉戴德蒙和麦格鲁德后才能直接签下格兰特 144 | 体育---肯特-贝兹莫尔与国王均有兴趣达成续约 145 | 体育---帕特-康诺顿两年830万美元续约雄鹿,第二年为球员选项 146 | 体育---曼联购法国新腰王需6200万,可替代博格巴!拜仁中卫梦想加盟曼联 147 | 体育---Shams:海沃德专注于通过先签后换的方式加盟步行者 148 | 体育---乒坛“大魔王”接连大比分落败的背后:烟雾弹还是吹过头? 149 | 体育---法甲3-2,超级大冷门!前拜仁主帅实现大逆转,内马尔深陷哑火 150 | 体育---为填补霍华德离队后的空缺,小加索尔成为湖人的补强目标 151 | 体育---连续三次不敌陈梦,孙颖莎到底怎么了?技术出现问题还是压力太大 152 | 体育---女排这一位置或再洗牌,21岁新星扣高超过袁心玥,有望逆袭上位 153 | 体育---4-1!樊振东淘汰大黑马,国乒提前包揽冠亚军,赛后再现高情商 154 | 体育---萨巴蒂尼:让托蒂早点退役是我一生最愚蠢言论之一 155 | 体育---球迷现场痛哭!昔日足协杯冠军+亚冠参赛队跌落深渊,会解散吗? 156 | 体育---费根:与伍德关系密切的人士透露,他并未接近签约火箭 157 | 体育---许多球队已经问价过哈登,但火箭不愿意认真参与谈判 158 | 体育---汗流浃背!字母哥更新Ins晒最新训练照:努力训练的成果 159 | 体育---热火曾为莫里斯开出年薪1800万美元的合同 160 | 体育---都是自己人!国乒包揽国际乒联总决赛男女单打冠亚 161 | 体育---CCTV5直播,国乒冲两冠,世界第一再战黑马,小魔王阻击伊藤美诚 162 | 体育---每体:巴萨希望格列兹曼尽快与“身边人士”的言论划清界限 163 | 体育---周琦如今增重明显身体愈发强壮,有望重返NBA吗?看掘金中锋便知 164 | 体育---伊藤美诚真了不起!战胜国乒大将向中国记者鞠躬,还用汉语说谢谢 165 | 体育---不莱梅主管:我们有意和拜仁合作,未来租借他们的球员 166 | 体育---国乒一日被淘汰2人,世界冠军也不能幸免,输球有1个共同原因 167 | 体育---AC米兰差点错过救星!伊布亲承曾考虑退役,险些加盟意甲第12 168 | 体育---4-1!国乒19冠诞生:世界第一帮助林高远“复仇”,晋级决赛 169 | 体育---没爆冷!樊振东4-1淘汰韩国黑马晋级决赛,秦志戬站起来鼓掌 170 | 体育---尽管多队追求乔-哈里斯,但他有强烈的意愿续约篮网 171 | 体育---当自由市场开启后,湖人将首先与霍华德和布拉德利进行交流 172 | 体育---跟队记者:波普最有可能回归湖人,隆多最不可能 173 | 体育---双年特例签约马修斯后,湖人下赛季将适用于硬工资帽 174 | 体育---陈梦4-0战胜孙颖莎 率先晋级女单决赛 175 | 体育---中甲保级附加赛告负,北京人和遭遇“两连降” 176 | -------------------------------------------------------------------------------- /somecode/ml/naive_bayes/text_classification.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # coding=utf-8 3 | 4 | 5 | import os 6 | import sys 7 | import jieba 8 | import warnings 9 | from sklearn.feature_extraction.text import TfidfVectorizer 10 | from sklearn.naive_bayes import MultinomialNB 11 | from sklearn import metrics 12 | 13 | 14 | warnings.filterwarnings('ignore') 15 | 16 | 17 | if sys.version.startswith('2.'): 18 | reload(sys) 19 | sys.setdefaultencoding('utf-8') 20 | 21 | 22 | def load_file(file_path): 23 | with open(file_path) as f: 24 | lines = f.readlines() 25 | 26 | titles = [] 27 | labels = [] 28 | 29 | for line in lines: 30 | line = line.encode('unicode-escape').decode('unicode-escape') 31 | line = line.strip().rstrip('\n') 32 | 33 | _lines = line.split('---') 34 | if len(_lines) != 2: 35 | continue 36 | 37 | label, title = _lines 38 | words = jieba.cut(title) 39 | 40 | s = '' 41 | for w in words: 42 | s += w + ' ' 43 | 44 | s = s.strip() 45 | 46 | titles.append(s) 47 | labels.append(label) 48 | 49 | 50 | return titles, labels 51 | 52 | 53 | def load_data(_dir): 54 | file_list = os.listdir(_dir) 55 | 56 | titles_list = [] 57 | labels_list = [] 58 | 59 | for file_name in file_list: 60 | file_path = _dir + '/' + file_name 61 | 62 | titles, labels = load_file(file_path) 63 | 64 | titles_list += titles 65 | labels_list += labels 66 | 67 | return titles_list, labels_list 68 | 69 | 70 | def load_stopwords(file_path): 71 | with open(file_path) as f: 72 | lines = f.readlines() 73 | 74 | words = [] 75 | for line in lines: 76 | line = line.encode('unicode-escape').decode('unicode-escape') 77 | line = line.strip('\n') 78 | words.append(line) 79 | 80 | return words 81 | 82 | 83 | if __name__ == '__main__': 84 | # 加载停用词 85 | stop_words = load_stopwords('stop_word/stopword.txt') 86 | 87 | # 加载训练数据 88 | train_datas, train_labels = load_data('train_data') 89 | 90 | # 加载测试数据 91 | test_datas, test_labels = load_data('test_data') 92 | 93 | # 计算单词权重 94 | tf = TfidfVectorizer(stop_words = stop_words, max_df=0.5) 95 | train_features = tf.fit_transform(train_datas) 96 | test_features = tf.transform(test_datas) 97 | 98 | # 多项式贝叶斯分类器 99 | clf = MultinomialNB(alpha = 0.001).fit(train_features, train_labels) 100 | 101 | # 预测数据 102 | predicted_labels = clf.predict(test_features) 103 | 104 | # 计算准确率 105 | score = metrics.accuracy_score(test_labels, predicted_labels) 106 | print score 107 | -------------------------------------------------------------------------------- /somecode/ml/naive_bayes/use_nb.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # coding=utf-8 3 | 4 | 5 | import jieba 6 | import warnings 7 | from sklearn.externals import joblib 8 | 9 | warnings.filterwarnings('ignore') 10 | 11 | 12 | MODEL = None 13 | TF = None 14 | 15 | 16 | def load_model(model_path, tf_path): 17 | global MODEL 18 | global TF 19 | 20 | MODEL = joblib.load(model_path) 21 | TF = joblib.load(tf_path) 22 | 23 | 24 | def nb_predict(title): 25 | assert MODEL != None and TF != None 26 | 27 | words = jieba.cut(title) 28 | s = ' '.join(words) 29 | 30 | test_features = TF.transform([s]) 31 | predicted_labels = MODEL.predict(test_features) 32 | 33 | return predicted_labels[0] 34 | 35 | 36 | if __name__ == '__main__': 37 | load_model('nb.pkl', 'tf.pkl') 38 | print nb_predict('东莞市场采购贸易联网信息平台参加部委首批联合验收') 39 | print nb_predict('留在中超了!踢进生死战决胜一球,武汉卓尔保级成功') 40 | print nb_predict('陈思诚全新系列电影《外太空的莫扎特》首曝海报 黄渤、荣梓杉演父子') 41 | print nb_predict('红薯的好处 常吃这种食物能够帮你减肥') 42 | -------------------------------------------------------------------------------- /somecode/ml/wordcloud/SimHei.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeshellme/codeshellme.github.io/76074d9edb1455b1a085768cee81df72f2517083/somecode/ml/wordcloud/SimHei.ttf -------------------------------------------------------------------------------- /somecode/ml/wordcloud/gushi_wordcloud.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # coding=utf-8 3 | 4 | 5 | import os 6 | import sys 7 | import jieba 8 | from wordcloud import WordCloud 9 | 10 | 11 | if sys.version.startswith('2.'): 12 | reload(sys) 13 | sys.setdefaultencoding('utf-8') 14 | 15 | 16 | # 去掉一些作者的名字 17 | STOPWORDS = [ 18 | u'李白', u'杜甫', u'辛弃疾', u'李清照', u'毛泽东', u'苏轼', 19 | u'李商隐', u'王维', u'白居易', u'李煜', u'杜牧', 20 | ] 21 | 22 | 23 | def load_file(file_path): 24 | if sys.version.startswith('2.'): 25 | with open(file_path) as f: 26 | lines = f.readlines() 27 | else: 28 | with open(file_path, encoding='utf-8') as f: 29 | lines = f.readlines() 30 | 31 | 32 | content = '' 33 | 34 | for line in lines: 35 | line = line.encode('unicode-escape').decode('unicode-escape') 36 | line = line.strip().rstrip('\n') 37 | 38 | content += line 39 | 40 | words = jieba.cut(content) 41 | 42 | l = [] 43 | for w in words: 44 | if len(w) < 2: continue 45 | 46 | l.append(w) 47 | 48 | return ' '.join(l) 49 | 50 | 51 | # 测试用 52 | def count(content): 53 | words = content.split(' ') 54 | 55 | keys = {} 56 | for w in words: 57 | if w in keys: 58 | keys[w] += 1 59 | else: 60 | keys[w] = 1 61 | 62 | # 按照值排序 63 | l = sorted(keys.items(), key = lambda kv:(kv[1], kv[0]), reverse=True) 64 | for i in l: 65 | w, n = i 66 | if n < 10: continue 67 | # print w, n 68 | 69 | return l 70 | 71 | 72 | if __name__ == '__main__': 73 | file_path = './gushi.txt' 74 | content = load_file(file_path) 75 | # l = count(content) 76 | 77 | wc = WordCloud( 78 | font_path="./SimHei.ttf", 79 | stopwords=STOPWORDS, 80 | width=2000, height=1200) 81 | 82 | wc.generate(content) 83 | import pdb 84 | pdb.set_trace() 85 | wc.to_file("wordcloud.jpg") 86 | -------------------------------------------------------------------------------- /tags/english/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | English · 码农充电站 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 56 | 57 | 61 | 62 | 63 | 64 |
65 | 68 |
69 | 70 | 71 | 72 |
73 |
74 | 89 |
90 | 111 | 112 |
113 |
114 |
115 |
116 |
117 |

English

118 |
119 | 120 |
121 | 122 | 2017-08-31 123 | 124 | 125 | 126 | [English] Creating a New Theme 127 | 128 | 129 |
130 |
131 | 132 | 136 |
137 | 138 | 139 |
140 |
141 | 142 |
143 | 146 | 147 | 164 |
165 | 166 |
167 | 168 |
169 |
170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | -------------------------------------------------------------------------------- /tags/english/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | English on 码农充电站 5 | https://codeshellme.github.io/tags/english/ 6 | Recent content in English on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Thu, 31 Aug 2017 15:43:48 +0800 11 | 12 | 13 | 14 | 15 | 16 | [English] Creating a New Theme 17 | https://codeshellme.github.io/post/english-preview/ 18 | Thu, 31 Aug 2017 15:43:48 +0800 19 | 20 | https://codeshellme.github.io/post/english-preview/ 21 | Introduction This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I&rsquo;ll explain how Hugo uses templates and how you can organize your templates to create a theme. I won&rsquo;t cover using CSS to style your theme. 22 | We&rsquo;ll start with creating a new site with a very basic template. 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tags/english/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/tags/english/ -------------------------------------------------------------------------------- /tags/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Tags on 码农充电站 5 | https://codeshellme.github.io/tags/ 6 | Recent content in Tags on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tags/preview/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | preview on 码农充电站 5 | https://codeshellme.github.io/tags/preview/ 6 | Recent content in preview on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Tue, 10 Jul 2018 00:00:00 +0800 11 | 12 | 13 | 14 | 15 | 16 | Theme preview 17 | https://codeshellme.github.io/post/even-preview/ 18 | Tue, 10 Jul 2018 00:00:00 +0800 19 | 20 | https://codeshellme.github.io/post/even-preview/ 21 | Based on MarkdownPreview test.md. Markdown 1 2 3 4 5 6 7 8 # H1 ## H2 ### H3 #### H4 ##### H5 ###### H6 ### Duplicate Header ### Duplicate Header H1 H2 H3 H4 H5 H6 Duplicate Header Duplicate Header Paragraphs 1 2 3 4 This is a paragraph. I am still part of the paragraph. New paragraph. This is a paragraph. I am still part of the paragraph. 22 | 23 | 24 | 25 | [English] Creating a New Theme 26 | https://codeshellme.github.io/post/english-preview/ 27 | Thu, 31 Aug 2017 15:43:48 +0800 28 | 29 | https://codeshellme.github.io/post/english-preview/ 30 | Introduction This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I&rsquo;ll explain how Hugo uses templates and how you can organize your templates to create a theme. I won&rsquo;t cover using CSS to style your theme. 31 | We&rsquo;ll start with creating a new site with a very basic template. 32 | 33 | 34 | 35 | [日本語] 敬語体系 36 | https://codeshellme.github.io/post/japanese-preview/ 37 | Wed, 30 Aug 2017 01:53:34 +0800 38 | 39 | https://codeshellme.github.io/post/japanese-preview/ 40 | 日本語の敬語体系は、一般に、大きく尊敬語・謙譲語・丁寧語に分類される。文化審議会国語分科会は、2007年2月に「敬語の指針」を答申し、これに 41 | 42 | 43 | 44 | [中文] 《长恨歌》 45 | https://codeshellme.github.io/post/chinese-preview/ 46 | Wed, 30 Aug 2017 01:37:56 +0800 47 | 48 | https://codeshellme.github.io/post/chinese-preview/ 49 | 《长恨歌》是中国唐朝诗人白居易的一首长篇叙事诗。 第一段:贵妃受宠爱 汉皇重色思倾国,御宇多年求不得。杨家有女初长成,养在深闺人未识。 天生丽质难 50 | 51 | 52 | 53 | Syntax Highlighting 54 | https://codeshellme.github.io/post/syntax-highlighting/ 55 | Tue, 30 Aug 2011 16:01:23 +0800 56 | 57 | https://codeshellme.github.io/post/syntax-highlighting/ 58 | <div class="highlight"><div class="chroma"> 59 | <table class="lntable"><tr><td class="lntd"> 60 | <pre class="chroma"><code><span class="lnt">1 61 | </span><span class="lnt">2 62 | </span><span class="lnt">3 63 | </span></code></pre></td> 64 | <td class="lntd"> 65 | <pre class="chroma"><code class="language-js" data-lang="js"><span class="kd">function</span> <span class="nx">helloWorld</span> <span class="p">()</span> <span class="p">{</span> 66 | <span class="nx">alert</span><span class="p">(</span><span class="s2">&#34;Hello, World!&#34;</span><span class="p">)</span> 67 | <span class="p">}</span> 68 | </code></pre></td></tr></table> 69 | </div> 70 | </div> 71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /tags/preview/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/tags/preview/ -------------------------------------------------------------------------------- /tags/python/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | python on 码农充电站 5 | http://localhost:1313/tags/python/ 6 | Recent content in python on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Wed, 30 Aug 2017 01:37:56 +0800 11 | 12 | 13 | 14 | 15 | 16 | 零基础如何自学Python 17 | http://localhost:1313/post/%E9%9B%B6%E5%9F%BA%E7%A1%80%E5%A6%82%E4%BD%95%E8%87%AA%E5%AD%A6python/ 18 | Wed, 30 Aug 2017 01:37:56 +0800 19 | 20 | http://localhost:1313/post/%E9%9B%B6%E5%9F%BA%E7%A1%80%E5%A6%82%E4%BD%95%E8%87%AA%E5%AD%A6python/ 21 | 1,什么是Python 人与人的交流需要人类语言,人与计算机交流(控制计算机)需要计算机语言。 Python 是众多计算机语言中的一种,每种计算机语言都有它 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tags/python/page/1/index.html: -------------------------------------------------------------------------------- 1 | http://localhost:1313/tags/python/ -------------------------------------------------------------------------------- /tags/shortcodes/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | shortcodes · 码农充电站 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 56 | 57 | 61 | 62 | 63 | 64 |
65 | 68 |
69 | 70 | 71 | 72 |
73 |
74 | 89 |
90 | 111 | 112 |
113 |
114 |
115 |
116 |
117 |

shortcodes

118 |
119 | 120 |
121 | 122 | 2016-08-30 123 | 124 | 125 | 126 | Shortcodes 127 | 128 | 129 |
130 |
131 | 132 | 136 |
137 | 138 | 139 |
140 |
141 | 142 |
143 | 146 | 147 | 164 |
165 | 166 |
167 | 168 |
169 |
170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | -------------------------------------------------------------------------------- /tags/shortcodes/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | shortcodes on 码农充电站 5 | https://codeshellme.github.io/tags/shortcodes/ 6 | Recent content in shortcodes on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Tue, 30 Aug 2016 16:01:23 +0800 11 | 12 | 13 | 14 | 15 | 16 | Shortcodes 17 | https://codeshellme.github.io/post/shortcodes/ 18 | Tue, 30 Aug 2016 16:01:23 +0800 19 | 20 | https://codeshellme.github.io/post/shortcodes/ 21 | <h1 id="admonition">Admonition</h1> 22 | <!-- raw HTML omitted --> 23 | <p>biu biu biu.</p> 24 | <!-- raw HTML omitted --> 25 | <!-- raw HTML omitted --> 26 | <!-- raw HTML omitted --> 27 | <!-- raw HTML omitted --> 28 | <!-- raw HTML omitted --> 29 | <div class="highlight"><div class="chroma"> 30 | <table class="lntable"><tr><td class="lntd"> 31 | <pre class="chroma"><code><span class="lnt"> 1 32 | </span><span class="lnt"> 2 33 | </span><span class="lnt"> 3 34 | </span><span class="lnt"> 4 35 | </span><span class="lnt"> 5 36 | </span><span class="lnt"> 6 37 | </span><span class="lnt"> 7 38 | </span><span class="lnt"> 8 39 | </span><span class="lnt"> 9 40 | </span><span class="lnt">10 41 | </span><span class="lnt">11 42 | </span><span class="lnt">12 43 | </span></code></pre></td> 44 | <td class="lntd"> 45 | <pre class="chroma"><code class="language-markdown" data-lang="markdown">{{% admonition note &#34;I&#39;m title!&#34; false %}} 46 | biu biu biu. 47 | 48 | {{% admonition type=&#34;note&#34; title=&#34;note&#34; details=&#34;true&#34; %}} 49 | biu biu biu. 50 | {{% /admonition %}} 51 | 52 | {{% admonition example %}} 53 | Without title. 54 | {{% /admonition %}} 55 | 56 | {{% /admonition %}} 57 | </code></pre></td></tr></table> 58 | </div> 59 | </div> 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /tags/shortcodes/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/tags/shortcodes/ -------------------------------------------------------------------------------- /tags/syntax-highlighting/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Syntax Highlighting on 码农充电站 5 | https://codeshellme.github.io/tags/syntax-highlighting/ 6 | Recent content in Syntax Highlighting on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Tue, 30 Aug 2011 16:01:23 +0800 11 | 12 | 13 | 14 | 15 | 16 | Syntax Highlighting 17 | https://codeshellme.github.io/post/syntax-highlighting/ 18 | Tue, 30 Aug 2011 16:01:23 +0800 19 | 20 | https://codeshellme.github.io/post/syntax-highlighting/ 21 | <div class="highlight"><div class="chroma"> 22 | <table class="lntable"><tr><td class="lntd"> 23 | <pre class="chroma"><code><span class="lnt">1 24 | </span><span class="lnt">2 25 | </span><span class="lnt">3 26 | </span></code></pre></td> 27 | <td class="lntd"> 28 | <pre class="chroma"><code class="language-js" data-lang="js"><span class="kd">function</span> <span class="nx">helloWorld</span> <span class="p">()</span> <span class="p">{</span> 29 | <span class="nx">alert</span><span class="p">(</span><span class="s2">&#34;Hello, World!&#34;</span><span class="p">)</span> 30 | <span class="p">}</span> 31 | </code></pre></td></tr></table> 32 | </div> 33 | </div> 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /tags/syntax-highlighting/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/tags/syntax-highlighting/ -------------------------------------------------------------------------------- /tags/tag-1/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | tag-1 · 码农充电站 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 56 | 57 | 61 | 62 | 63 | 64 |
65 | 68 |
69 | 70 | 71 | 72 |
73 |
74 | 89 |
90 | 111 | 112 |
113 |
114 |
115 |
116 |
117 |

tag-1

118 |
119 | 120 |
121 | 122 | 2017-08-30 123 | 124 | 125 | 126 | [中文] 《长恨歌》 127 | 128 | 129 |
130 |
131 | 132 | 136 |
137 | 138 | 139 |
140 |
141 | 142 |
143 | 146 | 147 | 164 |
165 | 166 |
167 | 168 |
169 |
170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | -------------------------------------------------------------------------------- /tags/tag-1/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | tag-1 on 码农充电站 5 | https://codeshellme.github.io/tags/tag-1/ 6 | Recent content in tag-1 on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Wed, 30 Aug 2017 01:37:56 +0800 11 | 12 | 13 | 14 | 15 | 16 | [中文] 《长恨歌》 17 | https://codeshellme.github.io/post/chinese-preview/ 18 | Wed, 30 Aug 2017 01:37:56 +0800 19 | 20 | https://codeshellme.github.io/post/chinese-preview/ 21 | 《长恨歌》是中国唐朝诗人白居易的一首长篇叙事诗。 第一段:贵妃受宠爱 汉皇重色思倾国,御宇多年求不得。杨家有女初长成,养在深闺人未识。 天生丽质难 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tags/tag-1/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/tags/tag-1/ -------------------------------------------------------------------------------- /tags/tag-2/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | tag-2 · 码农充电站 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 56 | 57 | 61 | 62 | 63 | 64 |
65 | 68 |
69 | 70 | 71 | 72 |
73 |
74 | 89 |
90 | 111 | 112 |
113 |
114 |
115 |
116 |
117 |

tag-2

118 |
119 | 120 |
121 | 122 | 2017-08-31 123 | 124 | 125 | 126 | [English] Creating a New Theme 127 | 128 | 129 |
130 |
131 | 132 | 136 |
137 | 138 | 139 |
140 |
141 | 142 |
143 | 146 | 147 | 164 |
165 | 166 |
167 | 168 |
169 |
170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | -------------------------------------------------------------------------------- /tags/tag-2/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | tag-2 on 码农充电站 5 | https://codeshellme.github.io/tags/tag-2/ 6 | Recent content in tag-2 on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Thu, 31 Aug 2017 15:43:48 +0800 11 | 12 | 13 | 14 | 15 | 16 | [English] Creating a New Theme 17 | https://codeshellme.github.io/post/english-preview/ 18 | Thu, 31 Aug 2017 15:43:48 +0800 19 | 20 | https://codeshellme.github.io/post/english-preview/ 21 | Introduction This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I&rsquo;ll explain how Hugo uses templates and how you can organize your templates to create a theme. I won&rsquo;t cover using CSS to style your theme. 22 | We&rsquo;ll start with creating a new site with a very basic template. 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tags/tag-2/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/tags/tag-2/ -------------------------------------------------------------------------------- /tags/tag-3/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | tag-3 · 码农充电站 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 56 | 57 | 61 | 62 | 63 | 64 |
65 | 68 |
69 | 70 | 71 | 72 |
73 |
74 | 89 |
90 | 111 | 112 |
113 |
114 |
115 |
116 |
117 |

tag-3

118 |
119 | 120 |
121 | 122 | 2018-07-10 123 | 124 | 125 | 126 | Theme preview 127 | 128 | 129 |
130 |
131 | 132 | 136 |
137 | 138 | 139 |
140 |
141 | 142 |
143 | 146 | 147 | 164 |
165 | 166 |
167 | 168 |
169 |
170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | -------------------------------------------------------------------------------- /tags/tag-3/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | tag-3 on 码农充电站 5 | https://codeshellme.github.io/tags/tag-3/ 6 | Recent content in tag-3 on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Tue, 10 Jul 2018 00:00:00 +0800 11 | 12 | 13 | 14 | 15 | 16 | Theme preview 17 | https://codeshellme.github.io/post/even-preview/ 18 | Tue, 10 Jul 2018 00:00:00 +0800 19 | 20 | https://codeshellme.github.io/post/even-preview/ 21 | Based on MarkdownPreview test.md. Markdown 1 2 3 4 5 6 7 8 # H1 ## H2 ### H3 #### H4 ##### H5 ###### H6 ### Duplicate Header ### Duplicate Header H1 H2 H3 H4 H5 H6 Duplicate Header Duplicate Header Paragraphs 1 2 3 4 This is a paragraph. I am still part of the paragraph. New paragraph. This is a paragraph. I am still part of the paragraph. 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tags/tag-3/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/tags/tag-3/ -------------------------------------------------------------------------------- /tags/tag-4/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | tag-4 · 码农充电站 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 56 | 57 | 61 | 62 | 63 | 64 |
65 | 68 |
69 | 70 | 71 | 72 |
73 |
74 | 89 |
90 | 111 | 112 |
113 |
114 |
115 |
116 |
117 |

tag-4

118 |
119 | 120 |
121 | 122 | 2017-08-30 123 | 124 | 125 | 126 | [日本語] 敬語体系 127 | 128 | 129 |
130 |
131 | 132 | 136 |
137 | 138 | 139 |
140 |
141 | 142 |
143 | 146 | 147 | 164 |
165 | 166 |
167 | 168 |
169 |
170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | -------------------------------------------------------------------------------- /tags/tag-4/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | tag-4 on 码农充电站 5 | https://codeshellme.github.io/tags/tag-4/ 6 | Recent content in tag-4 on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Wed, 30 Aug 2017 01:53:34 +0800 11 | 12 | 13 | 14 | 15 | 16 | [日本語] 敬語体系 17 | https://codeshellme.github.io/post/japanese-preview/ 18 | Wed, 30 Aug 2017 01:53:34 +0800 19 | 20 | https://codeshellme.github.io/post/japanese-preview/ 21 | 日本語の敬語体系は、一般に、大きく尊敬語・謙譲語・丁寧語に分類される。文化審議会国語分科会は、2007年2月に「敬語の指針」を答申し、これに 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tags/tag-4/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/tags/tag-4/ -------------------------------------------------------------------------------- /tags/tag-5/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | tag-5 · 码农充电站 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 56 | 57 | 61 | 62 | 63 | 64 |
65 | 68 |
69 | 70 | 71 | 72 |
73 |
74 | 89 |
90 | 111 | 112 |
113 |
114 |
115 |
116 |
117 |

tag-5

118 |
119 | 120 |
121 | 122 | 2011-08-30 123 | 124 | 125 | 126 | Syntax Highlighting 127 | 128 | 129 |
130 |
131 | 132 | 136 |
137 | 138 | 139 |
140 |
141 | 142 |
143 | 146 | 147 | 164 |
165 | 166 |
167 | 168 |
169 |
170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | -------------------------------------------------------------------------------- /tags/tag-5/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | tag-5 on 码农充电站 5 | https://codeshellme.github.io/tags/tag-5/ 6 | Recent content in tag-5 on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Tue, 30 Aug 2011 16:01:23 +0800 11 | 12 | 13 | 14 | 15 | 16 | Syntax Highlighting 17 | https://codeshellme.github.io/post/syntax-highlighting/ 18 | Tue, 30 Aug 2011 16:01:23 +0800 19 | 20 | https://codeshellme.github.io/post/syntax-highlighting/ 21 | <div class="highlight"><div class="chroma"> 22 | <table class="lntable"><tr><td class="lntd"> 23 | <pre class="chroma"><code><span class="lnt">1 24 | </span><span class="lnt">2 25 | </span><span class="lnt">3 26 | </span></code></pre></td> 27 | <td class="lntd"> 28 | <pre class="chroma"><code class="language-js" data-lang="js"><span class="kd">function</span> <span class="nx">helloWorld</span> <span class="p">()</span> <span class="p">{</span> 29 | <span class="nx">alert</span><span class="p">(</span><span class="s2">&#34;Hello, World!&#34;</span><span class="p">)</span> 30 | <span class="p">}</span> 31 | </code></pre></td></tr></table> 32 | </div> 33 | </div> 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /tags/tag-5/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/tags/tag-5/ -------------------------------------------------------------------------------- /tags/theme-preview/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Theme preview on 码农充电站 5 | https://codeshellme.github.io/tags/theme-preview/ 6 | Recent content in Theme preview on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Tue, 10 Jul 2018 00:00:00 +0800 11 | 12 | 13 | 14 | 15 | 16 | Theme preview 17 | https://codeshellme.github.io/post/even-preview/ 18 | Tue, 10 Jul 2018 00:00:00 +0800 19 | 20 | https://codeshellme.github.io/post/even-preview/ 21 | Based on MarkdownPreview test.md. Markdown 1 2 3 4 5 6 7 8 # H1 ## H2 ### H3 #### H4 ##### H5 ###### H6 ### Duplicate Header ### Duplicate Header H1 H2 H3 H4 H5 H6 Duplicate Header Duplicate Header Paragraphs 1 2 3 4 This is a paragraph. I am still part of the paragraph. New paragraph. This is a paragraph. I am still part of the paragraph. 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tags/theme-preview/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/tags/theme-preview/ -------------------------------------------------------------------------------- /tags/中文/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 中文 · 码农充电站 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 56 | 57 | 61 | 62 | 63 | 64 |
65 | 68 |
69 | 70 | 71 | 72 |
73 |
74 | 89 |
90 | 111 | 112 |
113 |
114 |
115 |
116 |
117 |

中文

118 |
119 | 120 |
121 | 122 | 2017-08-30 123 | 124 | 125 | 126 | [中文] 《长恨歌》 127 | 128 | 129 |
130 |
131 | 132 | 136 |
137 | 138 | 139 |
140 |
141 | 142 |
143 | 146 | 147 | 164 |
165 | 166 |
167 | 168 |
169 |
170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | -------------------------------------------------------------------------------- /tags/中文/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 中文 on 码农充电站 5 | https://codeshellme.github.io/tags/%E4%B8%AD%E6%96%87/ 6 | Recent content in 中文 on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Wed, 30 Aug 2017 01:37:56 +0800 11 | 12 | 13 | 14 | 15 | 16 | [中文] 《长恨歌》 17 | https://codeshellme.github.io/post/chinese-preview/ 18 | Wed, 30 Aug 2017 01:37:56 +0800 19 | 20 | https://codeshellme.github.io/post/chinese-preview/ 21 | 《长恨歌》是中国唐朝诗人白居易的一首长篇叙事诗。 第一段:贵妃受宠爱 汉皇重色思倾国,御宇多年求不得。杨家有女初长成,养在深闺人未识。 天生丽质难 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tags/中文/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/tags/%E4%B8%AD%E6%96%87/ -------------------------------------------------------------------------------- /tags/日本語/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 日本語 on 码农充电站 5 | https://codeshellme.github.io/tags/%E6%97%A5%E6%9C%AC%E8%AA%9E/ 6 | Recent content in 日本語 on 码农充电站 7 | Hugo -- gohugo.io 8 | en 9 | @码农充电站 10 | Wed, 30 Aug 2017 01:53:34 +0800 11 | 12 | 13 | 14 | 15 | 16 | [日本語] 敬語体系 17 | https://codeshellme.github.io/post/japanese-preview/ 18 | Wed, 30 Aug 2017 01:53:34 +0800 19 | 20 | https://codeshellme.github.io/post/japanese-preview/ 21 | 日本語の敬語体系は、一般に、大きく尊敬語・謙譲語・丁寧語に分類される。文化審議会国語分科会は、2007年2月に「敬語の指針」を答申し、これに 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tags/日本語/page/1/index.html: -------------------------------------------------------------------------------- 1 | https://codeshellme.github.io/tags/%E6%97%A5%E6%9C%AC%E8%AA%9E/ --------------------------------------------------------------------------------