From 74c1da4ee8796f25a570e23a6e77847b94554185 Mon Sep 17 00:00:00 2001 From: feilong Date: Wed, 24 Nov 2021 12:17:12 +0800 Subject: [PATCH] update author --- .../helloworld.json" | 2 +- .../helloworld.py" | 2 +- .../class.json" | 2 +- .../class.py" | 2 +- .../function.json" | 2 +- .../function.md" | 2 +- .../function.py" | 2 +- .../process.json" | 2 +- .../process.py" | 2 +- .../install.json" | 2 +- .../3.\345\256\211\350\243\205Python/install.py" | 2 +- .../run.json" | 2 +- .../run.py" | 2 +- .../ide.json" | 2 +- .../ide.py" | 2 +- .../style.json" | 2 +- .../style.py" | 2 +- .../import_lib.json" | 2 +- .../import_lib.py" | 2 +- .../import_other_module.json" | 2 +- .../import_other_module.py" | 2 +- .../import_relative.json" | 2 +- .../import_relative.py" | 2 +- .../step.json" | 2 +- .../step.py" | 2 +- .../input.py" | 2 +- .../util_builtin_01.py" | 2 +- .../util_builtin_02.py" | 2 +- .../3.\345\207\275\346\225\260/call.json" | 2 +- .../3.\345\207\275\346\225\260/call.py" | 2 +- .../3.\345\207\275\346\225\260/fact1.json" | 2 +- .../3.\345\207\275\346\225\260/fact1.py" | 2 +- .../3.\345\207\275\346\225\260/fact2.json" | 2 +- .../3.\345\207\275\346\225\260/fact2.py" | 2 +- .../3.\345\207\275\346\225\260/fibonacci1.json" | 2 +- .../3.\345\207\275\346\225\260/fibonacci1.py" | 2 +- .../3.\345\207\275\346\225\260/fibonacci2.json" | 2 +- .../3.\345\207\275\346\225\260/fibonacci2.py" | 2 +- .../3.\345\207\275\346\225\260/helloworld2.json" | 2 +- .../3.\345\207\275\346\225\260/helloworld2.py" | 2 +- .../4.\347\261\273/hash_key_value_set.json" | 2 +- .../4.\347\261\273/hash_key_value_set.py" | 2 +- .../hash_key_value_set_by_compose.json" | 2 +- .../hash_key_value_set_by_compose.py" | 2 +- .../4.\347\261\273/key_value_set.json" | 2 +- .../4.\347\261\273/key_value_set.py" | 2 +- .../calc.py" | 2 +- .../if-else.py" | 2 +- .../none.py" | 2 +- .../7.\345\276\252\347\216\257/for.py" | 2 +- .../7.\345\276\252\347\216\257/while.py" | 2 +- .../dict.py" | 2 +- .../list.py" | 2 +- .../string.py" | 2 +- .../tuple.py" | 2 +- .../builtin_class.py" | 2 +- .../dict.py" | 2 +- .../list01.py" | 2 +- .../list02.py" | 2 +- .../tuple.py" | 2 +- .../encode.py" | 2 +- .../triple01.py" | 2 +- .../triple02.py" | 2 +- .../3.\346\226\255\350\250\200/assert.py" | 2 +- .../4.with-as/enter_exit.py" | 2 +- .../4.with-as/withas.py" | 2 +- .../try01.py" | 2 +- .../str.py" | 2 +- .../7.lambda\345\207\275\346\225\260/lambda.py" | 2 +- .../8.\346\226\207\344\273\266/file_basic.py" | 2 +- .../file_piece_sha256.py" | 2 +- .../std01.py" | 2 +- .../std02.py" | 2 +- .../student.py" | 2 +- .../student.py" | 2 +- .../evolope.py" | 2 +- .../inherent.py" | 2 +- .../poly.py" | 2 +- .../point.py" | 2 +- .../abstract.py" | 2 +- .../access.py" | 2 +- .../object_meta.py" | 2 +- .../option_parser.py" | 2 +- .../sys_argv.py" | 2 +- .../date.py" | 2 +- .../for_each_month.py" | 2 +- .../time_span.py" | 2 +- .../copy.py" | 2 +- .../count_file.py" | 2 +- .../dir.py" | 2 +- .../list_file_in_dir.py" | 2 +- .../walk_dir.py" | 2 +- .../zip_with_progress.py" | 2 +- .../error_code.py" | 2 +- .../mysql_connection.py" | 2 +- .../mysql_connector.py" | 2 +- .../mysql_install.py" | 2 +- .../mysql_kv.py" | 2 +- .../redis_connector.py" | 2 +- .../redis_install.py" | 2 +- .../redis_kv.py" | 2 +- .../sqlite_connection.py" | 2 +- .../sqlite_connector.py" | 2 +- .../sqlite_kv.py" | 2 +- .../os_info.py" | 2 +- .../platform_info.py" | 2 +- .../package.py" | 2 +- .../tcp.py" | 2 +- .../send_mail.py" | 2 +- .../error_code.py" | 2 +- .../router.py" | 2 +- .../server.py" | 2 +- .../store.py" | 2 +- .../validator.py" | 2 +- .../2. Django/howto.py" | 2 +- .../3. Tornado/hello.py" | 2 +- .../4. Flask/server.py" | 2 +- .../1.urllib/get_html.py" | 2 +- .../1.urllib/post.py" | 2 +- .../1.urllib/with_headers.py" | 2 +- .../chinese01.py" | 2 +- .../chinese02.py" | 2 +- .../find_ip_address.py" | 2 +- .../remove_html.py" | 2 +- .../3.Beautiful Soup/get_p.py" | 5 +++-- .../3.Beautiful Soup/get_text.py" | 5 +++-- .../3.Beautiful Soup/html_parer.py" | 2 +- .../4.lxml/get_html_appoint_p.py" | 2 +- .../4.lxml/get_html_p.py" | 2 +- .../4.lxml/get_html_text.py" | 2 +- .../5.requests/get_html.py" | 2 +- .../5.requests/post.py" | 2 +- .../5.requests/with_headers.py" | 2 +- .../so_tag_spider.py" | 2 +- .../tag_pipeline.py" | 2 +- .../1.Tkinter/app.py" | 2 +- .../1.Tkinter/basic.py" | 3 ++- .../2.PyQT/for_each_month.py" | 2 +- .../2.PyQT/q_progress_bar.py" | 2 +- .../2.PyQT/q_progress_thread.py" | 2 +- .../3.WxPython/event.py" | 2 +- .../1.NumPy\346\246\202\350\277\260/top_n.py" | 2 +- .../install.py" | 2 +- .../convert_from_array.py" | 2 +- .../create_1d.py" | 2 +- .../create_2d.py" | 2 +- .../operate_array.py" | 2 +- .../common_fun.py" | 2 +- .../mask_array_01.py" | 2 +- .../mask_array_02.py" | 2 +- .../mask_array_03.py" | 2 +- .../matrix.py" | 2 +- .../binomial_distribution.py" | 2 +- .../dataframe.py" | 2 +- .../1.Pandas\346\246\202\350\247\210/series.py" | 2 +- .../dataframe.py" | 2 +- .../series.py" | 2 +- .../iloc.py" | 6 ++++-- .../loc.py" | 6 ++++-- .../stat.py" | 12 ++++++------ .../install.py" | 5 +++-- .../sin.py" | 3 ++- .../plot_bezier.py" | 2 +- .../plot_love.py" | 3 ++- .../style.py" | 12 ++++++------ .../1.SciPy\346\246\202\350\247\210/scipy.py" | 5 +++-- .../install.py" | 2 +- .../b_spline.py" | 2 +- .../inter_1.py" | 2 +- .../curve_fit.py" | 3 ++- .../leastsq.py" | 2 +- .../fft.py" | 2 +- .../rfft.py" | 2 +- .../mini_filter_ps.py" | 2 +- .../1.CSV\346\226\207\344\273\266/dict.py" | 2 +- .../1.CSV\346\226\207\344\273\266/list.py" | 2 +- .../1.CSV\346\226\207\344\273\266/panda.py" | 2 +- .../easy_excel.py" | 2 +- .../arma.py" | 6 ++++-- .../linear.py" | 6 ++++-- .../tensor.py" | 2 +- .../cv.py" | 2 +- .../tfidf.py" | 2 +- .../word_2_vec.py" | 2 +- .../kmeans.py" | 2 +- .../linear_egression_by_np.py" | 2 +- .../knn.py" | 15 +++++++++------ .../1.\345\207\275\346\225\260/decorator.py" | 2 +- .../1.\345\207\275\346\225\260/filter.py" | 5 +++-- .../1.\345\207\275\346\225\260/map.py" | 7 ++++--- .../1.\345\207\275\346\225\260/reduce.py" | 3 ++- .../1.\345\207\275\346\225\260/route.py" | 2 +- .../1.\345\207\275\346\225\260/zip.py" | 4 ++-- .../2.\347\261\273/singleton.py" | 2 +- .../async.py" | 2 +- .../counter.py" | 2 +- .../image_download.py" | 2 +- .../lock_counter.py" | 2 +- .../multi_process.py" | 2 +- .../producer_consumer.py" | 2 +- .../thread_executor.py" | 2 +- .../thread_free.py" | 2 +- .../match_01.py" | 2 +- .../match_02.py" | 2 +- .../code_obj.py" | 2 +- .../disa.py" | 2 +- .../func_code.py" | 2 +- 207 files changed, 256 insertions(+), 234 deletions(-) diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.Python\347\256\200\344\273\213/helloworld.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.Python\347\256\200\344\273\213/helloworld.json" index 51fc5f9..5ab2ebc 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.Python\347\256\200\344\273\213/helloworld.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.Python\347\256\200\344\273\213/helloworld.json" @@ -1,6 +1,6 @@ { "exercise_id": 33, - "author": "幻灰龙", + "author": "huanhuilong", "source": "helloworld.md", "depends": [], "type": "code_options" diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.Python\347\256\200\344\273\213/helloworld.py" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.Python\347\256\200\344\273\213/helloworld.py" index 7e81a60..073fe0c 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.Python\347\256\200\344\273\213/helloworld.py" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.Python\347\256\200\344\273\213/helloworld.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Hello World # 描述:输出 "Hello,World!" 字符串,找出错的那项。 diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/class.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/class.json" index 4d317ad..46ded95 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/class.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/class.json" @@ -1,5 +1,5 @@ { - "author": "幻灰龙", + "author": "huanhuilong", "source": "class.md", "depends": [], "exercise_id": 26, diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/class.py" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/class.py" index 30cadea..8ae54e4 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/class.py" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/class.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Alice、Bob 和他们的朋友们 # 描述:密码学著名人物 # [1] https://www.zhihu.com/question/63306763 diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/function.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/function.json" index 5aa0bba..1252905 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/function.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/function.json" @@ -1,5 +1,5 @@ { - "author": "幻灰龙", + "author": "huanhuilong", "source": "function.md", "depends": [], "exercise_id": 28, diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/function.md" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/function.md" index d7f0122..d99d2db 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/function.md" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/function.md" @@ -59,7 +59,7 @@ if __name__ == '__main__': ```python # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:编程语言发明家 # 描述:使用 Python 函数处理编程语言发明家的信息 diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/function.py" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/function.py" index f8906d5..682085c 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/function.py" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/function.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:编程语言发明家 # 描述:使用 Python 函数处理编程语言发明家的信息 diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/process.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/process.json" index 073161a..6b85ad0 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/process.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/process.json" @@ -1,5 +1,5 @@ { - "author": "幻灰龙", + "author": "huanhuilong", "source": "process.md", "depends": [], "exercise_id": 27, diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/process.py" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/process.py" index 9cd2edb..332b02e 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/process.py" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/process.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:编程语言简史 # 描述:循环打印每一个编程语言的创建年份 diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/3.\345\256\211\350\243\205Python/install.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/3.\345\256\211\350\243\205Python/install.json" index a3e2725..bb9200d 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/3.\345\256\211\350\243\205Python/install.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/3.\345\256\211\350\243\205Python/install.json" @@ -1,5 +1,5 @@ { - "author": "幻灰龙", + "author": "huanhuilong", "source": "install.md", "depends": [], "exercise_id": 31, diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/3.\345\256\211\350\243\205Python/install.py" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/3.\345\256\211\350\243\205Python/install.py" index 2572ea6..3157131 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/3.\345\256\211\350\243\205Python/install.py" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/3.\345\256\211\350\243\205Python/install.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 安装交互式查询程序 # 描述:交互式提示程序,用户选择对应平台后,能正确输出对应平台上的安装包下载连接 diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/4.\350\277\220\350\241\214\346\226\271\345\274\217/run.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/4.\350\277\220\350\241\214\346\226\271\345\274\217/run.json" index 35aef84..971bcff 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/4.\350\277\220\350\241\214\346\226\271\345\274\217/run.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/4.\350\277\220\350\241\214\346\226\271\345\274\217/run.json" @@ -1,5 +1,5 @@ { - "author": "幻灰龙", + "author": "huanhuilong", "source": "run.md", "depends": [], "exercise_id": 32, diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/4.\350\277\220\350\241\214\346\226\271\345\274\217/run.py" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/4.\350\277\220\350\241\214\346\226\271\345\274\217/run.py" index cbdbb5e..7f1a111 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/4.\350\277\220\350\241\214\346\226\271\345\274\217/run.py" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/4.\350\277\220\350\241\214\346\226\271\345\274\217/run.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 运行方式 # 描述:提示用户选择想要了解的Python 的两种运行方式,选择后输出对应方式的基本说明,最后输出用户学习了几种运行方式 diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/5.\345\270\270\347\224\250\345\274\200\345\217\221\345\267\245\345\205\267/ide.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/5.\345\270\270\347\224\250\345\274\200\345\217\221\345\267\245\345\205\267/ide.json" index 962c171..8e3ee60 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/5.\345\270\270\347\224\250\345\274\200\345\217\221\345\267\245\345\205\267/ide.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/5.\345\270\270\347\224\250\345\274\200\345\217\221\345\267\245\345\205\267/ide.json" @@ -1,5 +1,5 @@ { - "author": "幻灰龙", + "author": "huanhuilong", "source": "ide.md", "depends": [], "exercise_id": 30, diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/5.\345\270\270\347\224\250\345\274\200\345\217\221\345\267\245\345\205\267/ide.py" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/5.\345\270\270\347\224\250\345\274\200\345\217\221\345\267\245\345\205\267/ide.py" index 216dd7f..192e6d6 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/5.\345\270\270\347\224\250\345\274\200\345\217\221\345\267\245\345\205\267/ide.py" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/5.\345\270\270\347\224\250\345\274\200\345\217\221\345\267\245\345\205\267/ide.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python IDE # 描述:提示用户选择想要了解的IDE,输出对应 IDE 介绍 diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/6.\347\274\226\347\240\201\350\247\204\350\214\203/style.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/6.\347\274\226\347\240\201\350\247\204\350\214\203/style.json" index f586d1a..5c9158e 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/6.\347\274\226\347\240\201\350\247\204\350\214\203/style.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/6.\347\274\226\347\240\201\350\247\204\350\214\203/style.json" @@ -1,5 +1,5 @@ { - "author": "幻灰龙", + "author": "huanhuilong", "source": "style.md", "depends": [], "exercise_id": 29, diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/6.\347\274\226\347\240\201\350\247\204\350\214\203/style.py" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/6.\347\274\226\347\240\201\350\247\204\350\214\203/style.py" index 85455f9..b9cfc98 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/6.\347\274\226\347\240\201\350\247\204\350\214\203/style.py" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/6.\347\274\226\347\240\201\350\247\204\350\214\203/style.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 编码规范 # 描述:输出MarkDown风格列表结构的 “学习 Python 编码规范以及相关工具和插件” 的介绍信息 diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_lib.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_lib.json" index df949e2..c6c2cae 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_lib.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_lib.json" @@ -1,5 +1,5 @@ { - "author": "幻灰龙", + "author": "huanhuilong", "source": "import_lib.md", "depends": [], "exercise_id": 163, diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_lib.py" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_lib.py" index d348cbe..fa433ff 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_lib.py" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_lib.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 模块导入1 # 描述:通过 import 导入Python内置库 diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_other_module.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_other_module.json" index 7168b21..8e88a09 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_other_module.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_other_module.json" @@ -1,5 +1,5 @@ { - "author": "幻灰龙", + "author": "huanhuilong", "source": "import_other_module.md", "depends": [], "exercise_id": 164, diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_other_module.py" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_other_module.py" index 17975c5..40b36a7 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_other_module.py" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_other_module.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 模块导入2 # 描述:通过 import 导入自己写的另外一个模块 diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_relative.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_relative.json" index 02af5f3..feaabd8 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_relative.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_relative.json" @@ -1,5 +1,5 @@ { - "author": "幻灰龙", + "author": "huanhuilong", "source": "import_relative.md", "depends": [], "exercise_id": 165, diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_relative.py" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_relative.py" index 431ea43..ba80b99 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_relative.py" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_relative.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 模块导入3 # 描述:相对目录导入 diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/1.\347\274\251\350\277\233\350\247\204\345\210\231/step.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/1.\347\274\251\350\277\233\350\247\204\345\210\231/step.json" index 6e5dd4f..6f96948 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/1.\347\274\251\350\277\233\350\247\204\345\210\231/step.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/1.\347\274\251\350\277\233\350\247\204\345\210\231/step.json" @@ -1,5 +1,5 @@ { - "author": "幻灰龙", + "author": "huanhuilong", "source": "step.md", "depends": [], "exercise_id": 83, diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/1.\347\274\251\350\277\233\350\247\204\345\210\231/step.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/1.\347\274\251\350\277\233\350\247\204\345\210\231/step.py" index 1829789..6dce578 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/1.\347\274\251\350\277\233\350\247\204\345\210\231/step.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/1.\347\274\251\350\277\233\350\247\204\345\210\231/step.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 缩进规则 # 描述:Python 的缩进在一个源文件里要保持一致,例如都是4个空格或者都是2个空格 diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/10.\345\270\270\347\224\250\345\206\205\347\275\256\345\207\275\346\225\260/input.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/10.\345\270\270\347\224\250\345\206\205\347\275\256\345\207\275\346\225\260/input.py" index 7f1afc4..c3b75b0 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/10.\345\270\270\347\224\250\345\206\205\347\275\256\345\207\275\346\225\260/input.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/10.\345\270\270\347\224\250\345\206\205\347\275\256\345\207\275\346\225\260/input.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 基本输入 # 描述:心里想一个0-100之间的数字,让用户猜,如果小了或者大了,就给予提示,直到用户猜到 diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/10.\345\270\270\347\224\250\345\206\205\347\275\256\345\207\275\346\225\260/util_builtin_01.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/10.\345\270\270\347\224\250\345\206\205\347\275\256\345\207\275\346\225\260/util_builtin_01.py" index 2f327ee..5a68768 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/10.\345\270\270\347\224\250\345\206\205\347\275\256\345\207\275\346\225\260/util_builtin_01.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/10.\345\270\270\347\224\250\345\206\205\347\275\256\345\207\275\346\225\260/util_builtin_01.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 常用内置方法(1) # 描述:内置函数基本用例,基本测试+执行,,每个 assert 结果都是 True diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/10.\345\270\270\347\224\250\345\206\205\347\275\256\345\207\275\346\225\260/util_builtin_02.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/10.\345\270\270\347\224\250\345\206\205\347\275\256\345\207\275\346\225\260/util_builtin_02.py" index 8106b4e..6322fab 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/10.\345\270\270\347\224\250\345\206\205\347\275\256\345\207\275\346\225\260/util_builtin_02.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/10.\345\270\270\347\224\250\345\206\205\347\275\256\345\207\275\346\225\260/util_builtin_02.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 常用内置方法(2) # 描述:列表相关内置函数基本用例,基本测试+执行,每个 assert 结果都是 True diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/call.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/call.json" index aa897a5..f1b2890 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/call.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/call.json" @@ -1,5 +1,5 @@ { - "author": "幻灰龙", + "author": "huanhuilong", "source": "call.md", "depends": [], "exercise_id": 197, diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/call.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/call.py" index 734e96a..6651726 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/call.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/call.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 函数调用 # 描述:使用函数设计一组 “容器API”:init/set/get/exist diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact1.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact1.json" index 5d466fd..92d0b49 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact1.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact1.json" @@ -1,5 +1,5 @@ { - "author": "幻灰龙", + "author": "huanhuilong", "source": "fact1.md", "depends": [], "exercise_id": 190, diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact1.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact1.py" index e37afb7..1c7dac8 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact1.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact1.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 函数 # 描述:循环计算阶乘函数 diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact2.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact2.json" index a0c4190..57644d0 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact2.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact2.json" @@ -1,5 +1,5 @@ { - "author": "幻灰龙", + "author": "huanhuilong", "source": "fact2.md", "depends": [], "exercise_id": 244, diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact2.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact2.py" index 1f182c5..27c7acc 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact2.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact2.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 函数递归 # 描述:递归计算阶乘函数 diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci1.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci1.json" index 25faa87..497f5e7 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci1.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci1.json" @@ -1,5 +1,5 @@ { - "author": "幻灰龙", + "author": "huanhuilong", "source": "fibonacci1.md", "depends": [], "exercise_id": 201, diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci1.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci1.py" index 3c410bf..5b039e9 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci1.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci1.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 函数递归 # 描述:递归计算斐波那契函数 diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci2.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci2.json" index 5483773..79692cb 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci2.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci2.json" @@ -1,5 +1,5 @@ { - "author": "幻灰龙", + "author": "huanhuilong", "source": "fibonacci2.md", "depends": [], "exercise_id": 239, diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci2.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci2.py" index 2622565..e6a42d8 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci2.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci2.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 函数+缓存 # 描述:递归计算斐波那契函数, 带缓存 diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/helloworld2.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/helloworld2.json" index faac249..df054bb 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/helloworld2.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/helloworld2.json" @@ -1,5 +1,5 @@ { - "author": "幻灰龙", + "author": "huanhuilong", "source": "helloworld2.md", "depends": [], "exercise_id": 166, diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/helloworld2.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/helloworld2.py" index 2ec7124..7072d95 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/helloworld2.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/helloworld2.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Hello World 进阶 # 描述:使用递归循环输出Hello World的每个字符,循环5次 diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set.json" index 314bb99..b48bb65 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set.json" @@ -1,5 +1,5 @@ { - "author": "幻灰龙", + "author": "huanhuilong", "source": "hash_key_value_set.py", "depends": [ "key_value_set.py" diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set.py" index 1eaa91e..16f7aed 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 类的基本使用(2) # 描述:继承容器类,扩展功能,支持类似redis的 hset/hget/hkeys 扩展接口 diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set_by_compose.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set_by_compose.json" index 13c83b8..366f829 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set_by_compose.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set_by_compose.json" @@ -1,5 +1,5 @@ { - "author": "幻灰龙", + "author": "huanhuilong", "source": "hash_key_value_set_by_compose.py", "depends": [ "key_value_set.py" diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set_by_compose.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set_by_compose.py" index 5fb04ed..0d643ad 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set_by_compose.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set_by_compose.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 类的基本使用(3) # 描述:类的组合,使用组合而非继承实现类的扩展,支持类似redis的 hset/hget/hkeys 扩展接口 diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/key_value_set.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/key_value_set.json" index 3644b9a..97b94cb 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/key_value_set.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/key_value_set.json" @@ -1,5 +1,5 @@ { - "author": "幻灰龙", + "author": "huanhuilong", "source": "key_value_set.md", "depends": [], "exercise_id": 167, diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/key_value_set.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/key_value_set.py" index b1b9c13..f55fe64 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/key_value_set.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/key_value_set.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 类的基本使用(1) # 描述:编写一个kv容器类,支持 set/get/exist/keys/count 接口 diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/5.\351\241\272\345\272\217\350\257\255\345\217\245\347\273\223\346\236\204/calc.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/5.\351\241\272\345\272\217\350\257\255\345\217\245\347\273\223\346\236\204/calc.py" index bc9d455..5bf402a 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/5.\351\241\272\345\272\217\350\257\255\345\217\245\347\273\223\346\236\204/calc.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/5.\351\241\272\345\272\217\350\257\255\345\217\245\347\273\223\346\236\204/calc.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 顺序语句 # 描述:一行一个语句,计算长方形面积 diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/6.\346\235\241\344\273\266\345\222\214\345\210\206\346\224\257/if-else.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/6.\346\235\241\344\273\266\345\222\214\345\210\206\346\224\257/if-else.py" index 205e320..9f5c5d6 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/6.\346\235\241\344\273\266\345\222\214\345\210\206\346\224\257/if-else.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/6.\346\235\241\344\273\266\345\222\214\345\210\206\346\224\257/if-else.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 条件和分支(1) # 描述:编写一个程序,能正确提示用户输入测试数字,判断是否是除以2等于5的数字。 diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/6.\346\235\241\344\273\266\345\222\214\345\210\206\346\224\257/none.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/6.\346\235\241\344\273\266\345\222\214\345\210\206\346\224\257/none.py" index a745f24..f0a09b3 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/6.\346\235\241\344\273\266\345\222\214\345\210\206\346\224\257/none.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/6.\346\235\241\344\273\266\345\222\214\345\210\206\346\224\257/none.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 条件和分支(2) # 描述:存在还是不存在,提示用户输入查询关键字,判断是否在字典的key中,输出查询结果。 diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/7.\345\276\252\347\216\257/for.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/7.\345\276\252\347\216\257/for.py" index ab357fe..d522830 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/7.\345\276\252\347\216\257/for.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/7.\345\276\252\347\216\257/for.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 循环1 # 描述:使用 for 遍历打印列表信息 diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/7.\345\276\252\347\216\257/while.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/7.\345\276\252\347\216\257/while.py" index b991204..320dd64 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/7.\345\276\252\347\216\257/while.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/7.\345\276\252\347\216\257/while.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 循环1 # 描述:使用 while 遍历,打印列表信息 diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/8.\346\225\260\346\215\256\347\261\273\345\236\213/dict.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/8.\346\225\260\346\215\256\347\261\273\345\236\213/dict.py" index f023e37..1875a92 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/8.\346\225\260\346\215\256\347\261\273\345\236\213/dict.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/8.\346\225\260\346\215\256\347\261\273\345\236\213/dict.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 字典 # 描述:字典的基本使用,插入key-value,并打印结果 diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/8.\346\225\260\346\215\256\347\261\273\345\236\213/list.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/8.\346\225\260\346\215\256\347\261\273\345\236\213/list.py" index 9c592b4..50f44f8 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/8.\346\225\260\346\215\256\347\261\273\345\236\213/list.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/8.\346\225\260\346\215\256\347\261\273\345\236\213/list.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 列表 # 描述:列表的基本使用,使用append/pop,打印结果 diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/8.\346\225\260\346\215\256\347\261\273\345\236\213/string.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/8.\346\225\260\346\215\256\347\261\273\345\236\213/string.py" index c91dc96..19f7aef 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/8.\346\225\260\346\215\256\347\261\273\345\236\213/string.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/8.\346\225\260\346\215\256\347\261\273\345\236\213/string.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 字符串 # 描述:使用字符串,几种不同引号的混合使用 diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/8.\346\225\260\346\215\256\347\261\273\345\236\213/tuple.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/8.\346\225\260\346\215\256\347\261\273\345\236\213/tuple.py" index 95a8e7e..0f8546b 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/8.\346\225\260\346\215\256\347\261\273\345\236\213/tuple.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/8.\346\225\260\346\215\256\347\261\273\345\236\213/tuple.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 元组 # 描述:元组的基本使用,循环打印元组成员,如果只有一个元素,应该怎么表示
diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/9.\345\206\205\347\275\256\347\261\273/builtin_class.py" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/9.\345\206\205\347\275\256\347\261\273/builtin_class.py" index df0fb8e..59059fb 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/9.\345\206\205\347\275\256\347\261\273/builtin_class.py" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/9.\345\206\205\347\275\256\347\261\273/builtin_class.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 内置类型 # 描述:内置类的使用,列表元素去重+过滤小于3的元素 diff --git "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/1.\345\210\227\350\241\250\346\216\250\345\257\274\345\274\217/dict.py" "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/1.\345\210\227\350\241\250\346\216\250\345\257\274\345\274\217/dict.py" index 7bc23a0..b1f6240 100644 --- "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/1.\345\210\227\350\241\250\346\216\250\345\257\274\345\274\217/dict.py" +++ "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/1.\345\210\227\350\241\250\346\216\250\345\257\274\345\274\217/dict.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 字典推导式 # 描述:Python 独步天下的推导式表达式,使用字典推导式过滤,打印非windows系统的 Python 安装介绍 diff --git "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/1.\345\210\227\350\241\250\346\216\250\345\257\274\345\274\217/list01.py" "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/1.\345\210\227\350\241\250\346\216\250\345\257\274\345\274\217/list01.py" index b34a558..8d77c43 100644 --- "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/1.\345\210\227\350\241\250\346\216\250\345\257\274\345\274\217/list01.py" +++ "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/1.\345\210\227\350\241\250\346\216\250\345\257\274\345\274\217/list01.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 列表推导式(1) # 描述:Python 独步天下的推导式表达式,使用列表推导式过滤出偶数列表 diff --git "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/1.\345\210\227\350\241\250\346\216\250\345\257\274\345\274\217/list02.py" "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/1.\345\210\227\350\241\250\346\216\250\345\257\274\345\274\217/list02.py" index d0d9c8c..6b487f8 100644 --- "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/1.\345\210\227\350\241\250\346\216\250\345\257\274\345\274\217/list02.py" +++ "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/1.\345\210\227\350\241\250\346\216\250\345\257\274\345\274\217/list02.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 列表推导式(2) # 描述:Python 独步天下的推导式表达式,使用列表推导式过滤不热的天气 diff --git "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/1.\345\210\227\350\241\250\346\216\250\345\257\274\345\274\217/tuple.py" "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/1.\345\210\227\350\241\250\346\216\250\345\257\274\345\274\217/tuple.py" index 9a0e143..ad9d6d7 100644 --- "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/1.\345\210\227\350\241\250\346\216\250\345\257\274\345\274\217/tuple.py" +++ "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/1.\345\210\227\350\241\250\346\216\250\345\257\274\345\274\217/tuple.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 元组推导式 # 描述:Python 独步天下的推导式表达式,使用元表推式过滤长度小于等于4的书籍 diff --git "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/10.\345\255\227\347\254\246\347\274\226\347\240\201\344\270\216\350\247\243\347\240\201/encode.py" "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/10.\345\255\227\347\254\246\347\274\226\347\240\201\344\270\216\350\247\243\347\240\201/encode.py" index ca3898e..e3b83a5 100644 --- "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/10.\345\255\227\347\254\246\347\274\226\347\240\201\344\270\216\350\247\243\347\240\201/encode.py" +++ "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/10.\345\255\227\347\254\246\347\274\226\347\240\201\344\270\216\350\247\243\347\240\201/encode.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 字符编解码 # 描述:二进制只是二进制,取决于怎么编码和解码,unicode 转 utf8 diff --git "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/2.\344\270\211\345\205\203\350\241\250\350\276\276\345\274\217/triple01.py" "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/2.\344\270\211\345\205\203\350\241\250\350\276\276\345\274\217/triple01.py" index 55b3030..a1f8a02 100644 --- "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/2.\344\270\211\345\205\203\350\241\250\350\276\276\345\274\217/triple01.py" +++ "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/2.\344\270\211\345\205\203\350\241\250\350\276\276\345\274\217/triple01.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 三元表达式(1) # 描述:Python 没有问号表达式了!使用三元组表达式统计偶数个数 diff --git "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/2.\344\270\211\345\205\203\350\241\250\350\276\276\345\274\217/triple02.py" "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/2.\344\270\211\345\205\203\350\241\250\350\276\276\345\274\217/triple02.py" index e209742..0f7ce10 100644 --- "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/2.\344\270\211\345\205\203\350\241\250\350\276\276\345\274\217/triple02.py" +++ "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/2.\344\270\211\345\205\203\350\241\250\350\276\276\345\274\217/triple02.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 三元表达式(2) # 描述:使用嵌套的三元组表达式统计数字频率,如果是2的倍数加1,如果是4的倍数加2,否则加0 diff --git "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/3.\346\226\255\350\250\200/assert.py" "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/3.\346\226\255\350\250\200/assert.py" index 1f667ac..3bb1003 100644 --- "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/3.\346\226\255\350\250\200/assert.py" +++ "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/3.\346\226\255\350\250\200/assert.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 断言 # 描述:所谓断言,就是证明,使用 assert 对输入函数输入参数和函数返回结果分别做前校验和后校验 diff --git "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/4.with-as/enter_exit.py" "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/4.with-as/enter_exit.py" index 37b28d0..4ca3104 100644 --- "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/4.with-as/enter_exit.py" +++ "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/4.with-as/enter_exit.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python with-as 语句(2) # 描述:实现一个范围耗时统计类。 实现了 __enter__ 和 __exit__ 成员的类,可以通过 with as 语法使用,程序进入和离开范围的时候会自动调用 __enter__ 和 __exit__方法。 diff --git "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/4.with-as/withas.py" "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/4.with-as/withas.py" index 6b2a060..195ae07 100644 --- "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/4.with-as/withas.py" +++ "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/4.with-as/withas.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python with-as 语句(1) # 描述:文件读写 diff --git "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/5.\345\274\202\345\270\270\346\215\225\350\216\267\351\242\204\345\244\204\347\220\206/try01.py" "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/5.\345\274\202\345\270\270\346\215\225\350\216\267\351\242\204\345\244\204\347\220\206/try01.py" index c7b4767..eb492ab 100644 --- "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/5.\345\274\202\345\270\270\346\215\225\350\216\267\351\242\204\345\244\204\347\220\206/try01.py" +++ "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/5.\345\274\202\345\270\270\346\215\225\350\216\267\351\242\204\345\244\204\347\220\206/try01.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 异常处理 # 描述:控制异常的最小范围,出现异常正常打印日志和堆栈 diff --git "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/6.\345\255\227\347\254\246\344\270\262\346\226\271\346\263\225/str.py" "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/6.\345\255\227\347\254\246\344\270\262\346\226\271\346\263\225/str.py" index c2a2fc5..f52e9f3 100644 --- "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/6.\345\255\227\347\254\246\344\270\262\346\226\271\346\263\225/str.py" +++ "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/6.\345\255\227\347\254\246\344\270\262\346\226\271\346\263\225/str.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 字符串方法 # 描述:Python 的字符串处理, 一个朴实无华的四则运算计算器,批量计算小学生四则运算表达式 diff --git "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/7.lambda\345\207\275\346\225\260/lambda.py" "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/7.lambda\345\207\275\346\225\260/lambda.py" index 4b7da4b..2857ffe 100644 --- "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/7.lambda\345\207\275\346\225\260/lambda.py" +++ "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/7.lambda\345\207\275\346\225\260/lambda.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 匿名表达式 # 描述:Python 高阶函数编程,使用 lambda 表达式获取key,将list转成dict diff --git "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/8.\346\226\207\344\273\266/file_basic.py" "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/8.\346\226\207\344\273\266/file_basic.py" index d69311d..246adb5 100644 --- "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/8.\346\226\207\344\273\266/file_basic.py" +++ "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/8.\346\226\207\344\273\266/file_basic.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 文件读写 # 描述:基本文件读写,写入 "test" 到 "/tmp/test.txt",再次打开读取 diff --git "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/8.\346\226\207\344\273\266/file_piece_sha256.py" "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/8.\346\226\207\344\273\266/file_piece_sha256.py" index 6d6f5e5..f94f690 100644 --- "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/8.\346\226\207\344\273\266/file_piece_sha256.py" +++ "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/8.\346\226\207\344\273\266/file_piece_sha256.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 文件读写 # 描述:一种基于 sha256 的文件分片 hash 计算方式 diff --git "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/9.\345\270\270\347\224\250\346\240\207\345\207\206\345\272\223/std01.py" "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/9.\345\270\270\347\224\250\346\240\207\345\207\206\345\272\223/std01.py" index 8c1e9dd..1d8be3f 100644 --- "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/9.\345\270\270\347\224\250\346\240\207\345\207\206\345\272\223/std01.py" +++ "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/9.\345\270\270\347\224\250\346\240\207\345\207\206\345\272\223/std01.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 常用标准库(1) # 描述:sys, os, math, time, date ,以下所有的 assert 为 True ,
请在使用的时候查文档,例如日期文档:https://docs.python.org/zh-cn/3/library/datetime.html#datetime.datetime diff --git "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/9.\345\270\270\347\224\250\346\240\207\345\207\206\345\272\223/std02.py" "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/9.\345\270\270\347\224\250\346\240\207\345\207\206\345\272\223/std02.py" index 10d3fec..3dc4604 100644 --- "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/9.\345\270\270\347\224\250\346\240\207\345\207\206\345\272\223/std02.py" +++ "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/9.\345\270\270\347\224\250\346\240\207\345\207\206\345\272\223/std02.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 常用标准库(2) # 描述:json 序列化和反序列化 diff --git "a/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/1.\347\261\273\345\222\214\345\257\271\350\261\241\347\232\204\346\246\202\345\277\265/student.py" "b/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/1.\347\261\273\345\222\214\345\257\271\350\261\241\347\232\204\346\246\202\345\277\265/student.py" index f6f2349..48f95a8 100644 --- "a/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/1.\347\261\273\345\222\214\345\257\271\350\261\241\347\232\204\346\246\202\345\277\265/student.py" +++ "b/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/1.\347\261\273\345\222\214\345\257\271\350\261\241\347\232\204\346\246\202\345\277\265/student.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 类和对象 # 描述:创建学生类, 创建一个学生列表,加入3个学生,循环打印学生信息 diff --git "a/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/2.\347\261\273\346\210\220\345\221\230/student.py" "b/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/2.\347\261\273\346\210\220\345\221\230/student.py" index e801e3f..d2bac16 100644 --- "a/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/2.\347\261\273\346\210\220\345\221\230/student.py" +++ "b/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/2.\347\261\273\346\210\220\345\221\230/student.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 类成员 # 描述:直接调用学生类的成员变量,打印学生信息 diff --git "a/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/3.\351\235\242\345\220\221\345\257\271\350\261\241\344\270\211\350\246\201\347\264\240/evolope.py" "b/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/3.\351\235\242\345\220\221\345\257\271\350\261\241\344\270\211\350\246\201\347\264\240/evolope.py" index 715952e..4efe7fb 100644 --- "a/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/3.\351\235\242\345\220\221\345\257\271\350\261\241\344\270\211\350\246\201\347\264\240/evolope.py" +++ "b/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/3.\351\235\242\345\220\221\345\257\271\350\261\241\344\270\211\350\246\201\347\264\240/evolope.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 封装 # 描述:只通过方法访问学生信息,则可以控制方法内的定制逻辑,例如记录访问日志 diff --git "a/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/3.\351\235\242\345\220\221\345\257\271\350\261\241\344\270\211\350\246\201\347\264\240/inherent.py" "b/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/3.\351\235\242\345\220\221\345\257\271\350\261\241\344\270\211\350\246\201\347\264\240/inherent.py" index fa37f09..7e7b1e6 100644 --- "a/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/3.\351\235\242\345\220\221\345\257\271\350\261\241\344\270\211\350\246\201\347\264\240/inherent.py" +++ "b/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/3.\351\235\242\345\220\221\345\257\271\350\261\241\344\270\211\350\246\201\347\264\240/inherent.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 继承 # 描述:使用继承,提取学生和教师类的公共父类 diff --git "a/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/3.\351\235\242\345\220\221\345\257\271\350\261\241\344\270\211\350\246\201\347\264\240/poly.py" "b/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/3.\351\235\242\345\220\221\345\257\271\350\261\241\344\270\211\350\246\201\347\264\240/poly.py" index d86bd79..9622da4 100644 --- "a/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/3.\351\235\242\345\220\221\345\257\271\350\261\241\344\270\211\350\246\201\347\264\240/poly.py" +++ "b/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/3.\351\235\242\345\220\221\345\257\271\350\261\241\344\270\211\350\246\201\347\264\240/poly.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 类多态 # 描述:学生和教师类,统一处理,打印他们的基本信息 diff --git "a/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/4.\345\210\233\345\273\272\347\261\273/point.py" "b/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/4.\345\210\233\345\273\272\347\261\273/point.py" index 49ad9a0..6c45338 100644 --- "a/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/4.\345\210\233\345\273\272\347\261\273/point.py" +++ "b/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/4.\345\210\233\345\273\272\347\261\273/point.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 类创建 # 描述:创建点对象,计算内积 diff --git "a/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/5.\346\212\275\350\261\241\347\261\273/abstract.py" "b/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/5.\346\212\275\350\261\241\347\261\273/abstract.py" index 969470e..dc5b608 100644 --- "a/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/5.\346\212\275\350\261\241\347\261\273/abstract.py" +++ "b/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/5.\346\212\275\350\261\241\347\261\273/abstract.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 类创建 # 描述:使用 abc 库,创建抽象 BasePoint 类,创建 Point 子类,实现 dot 抽象方法 diff --git "a/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/6.\350\256\277\351\227\256\351\231\220\345\210\266/access.py" "b/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/6.\350\256\277\351\227\256\351\231\220\345\210\266/access.py" index 57667c8..1fa6664 100644 --- "a/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/6.\350\256\277\351\227\256\351\231\220\345\210\266/access.py" +++ "b/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/6.\350\256\277\351\227\256\351\231\220\345\210\266/access.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 访问控制 # 描述:分别编写类内部的私有方法,模块级别的私有方法 diff --git "a/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/7.\350\216\267\345\217\226\345\257\271\350\261\241\344\277\241\346\201\257/object_meta.py" "b/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/7.\350\216\267\345\217\226\345\257\271\350\261\241\344\277\241\346\201\257/object_meta.py" index ccf818e..2c681e9 100644 --- "a/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/7.\350\216\267\345\217\226\345\257\271\350\261\241\344\277\241\346\201\257/object_meta.py" +++ "b/data/1.python\345\210\235\351\230\266/4.\351\235\242\345\220\221\345\257\271\350\261\241\347\274\226\347\250\213/7.\350\216\267\345\217\226\345\257\271\350\261\241\344\277\241\346\201\257/object_meta.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 获取对象信息 # 描述:过滤列表里所有含有 'z' 属性的对象,打印他们的 'x'+'y'+'z' 的值 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/1.\350\247\243\346\236\220\345\221\275\344\273\244\350\241\214\345\217\202\346\225\260/option_parser.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/1.\350\247\243\346\236\220\345\221\275\344\273\244\350\241\214\345\217\202\346\225\260/option_parser.py" index ec2acd7..8e4e406 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/1.\350\247\243\346\236\220\345\221\275\344\273\244\350\241\214\345\217\202\346\225\260/option_parser.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/1.\350\247\243\346\236\220\345\221\275\344\273\244\350\241\214\345\217\202\346\225\260/option_parser.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 命令行解析 # 描述:使用 optparse 库配置指定命令行选项,并解析命令行 # 1. 选项 '-s' 和选项 '--server' 等价 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/1.\350\247\243\346\236\220\345\221\275\344\273\244\350\241\214\345\217\202\346\225\260/sys_argv.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/1.\350\247\243\346\236\220\345\221\275\344\273\244\350\241\214\345\217\202\346\225\260/sys_argv.py" index 3e49814..6a75055 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/1.\350\247\243\346\236\220\345\221\275\344\273\244\350\241\214\345\217\202\346\225\260/sys_argv.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/1.\350\247\243\346\236\220\345\221\275\344\273\244\350\241\214\345\217\202\346\225\260/sys_argv.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 命令行解析 # 描述:手工编写 Python 命令行解析,支持 '-x' 或者 '--x' 类型选项处理,如果没有指定值则设置为True diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/2.\346\227\266\351\227\264\346\227\245\346\234\237\345\244\204\347\220\206/date.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/2.\346\227\266\351\227\264\346\227\245\346\234\237\345\244\204\347\220\206/date.py" index 5e17afb..cbc3be0 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/2.\346\227\266\351\227\264\346\227\245\346\234\237\345\244\204\347\220\206/date.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/2.\346\227\266\351\227\264\346\227\245\346\234\237\345\244\204\347\220\206/date.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 时间日期 # 描述:常用日期时间处理 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/2.\346\227\266\351\227\264\346\227\245\346\234\237\345\244\204\347\220\206/for_each_month.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/2.\346\227\266\351\227\264\346\227\245\346\234\237\345\244\204\347\220\206/for_each_month.py" index ad09450..31d0bb5 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/2.\346\227\266\351\227\264\346\227\245\346\234\237\345\244\204\347\220\206/for_each_month.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/2.\346\227\266\351\227\264\346\227\245\346\234\237\345\244\204\347\220\206/for_each_month.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 时间加法 # 描述:从2008年1月开始到本月,遍历每一个月份的1号,并打印信息 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/2.\346\227\266\351\227\264\346\227\245\346\234\237\345\244\204\347\220\206/time_span.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/2.\346\227\266\351\227\264\346\227\245\346\234\237\345\244\204\347\220\206/time_span.py" index 9c3c351..55a361b 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/2.\346\227\266\351\227\264\346\227\245\346\234\237\345\244\204\347\220\206/time_span.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/2.\346\227\266\351\227\264\346\227\245\346\234\237\345\244\204\347\220\206/time_span.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 计时器 # 描述:便利的 Python 计时器,统计从 0 遍历到 100000 消耗的时间,精确到毫秒 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/copy.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/copy.py" index 0b2e4d2..75c042f 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/copy.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/copy.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 文件夹拷贝 # 描述: # 1. 使用 shutil 拷贝 "copy.py" 文件到 "/tmp/copy.py" diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/count_file.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/count_file.py" index 1605656..ffdac3e 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/count_file.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/count_file.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 文件统计 # 描述:统计文件中行数,非空行数,以及空格间隔的token数 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/dir.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/dir.py" index 6f3c41b..b2175bd 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/dir.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/dir.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 创建文件夹 # 描述:使用 os 递归创建文件夹,已存在就覆盖 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/list_file_in_dir.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/list_file_in_dir.py" index 8b0d4fc..cde7605 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/list_file_in_dir.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/list_file_in_dir.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 文件遍历 # 描述:稳定排序地遍历一个文件下的文件 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/walk_dir.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/walk_dir.py" index ba7b9d1..877554b 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/walk_dir.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/walk_dir.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 文件遍历2 # 描述:遍历一个文件夹下的所有子文件夹下文件,并返回绝对路径列表 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/zip_with_progress.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/zip_with_progress.py" index 0d0ad14..b32dd49 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/zip_with_progress.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/3.\346\225\260\346\215\256\346\226\207\344\273\266\350\257\273\345\206\231/zip_with_progress.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 文件夹压缩 # 描述:使用 shutil 对文件夹进行zip压缩,压缩过程显示进度条 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/error_code.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/error_code.py" index 6b83050..8707a84 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/error_code.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/error_code.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:错误码处理 # 描述:编写一个错误码枚举,支持转换成字符串格式方法: internal_ret_2_http diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/mysql_connection.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/mysql_connection.py" index dddcdae..85a421c 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/mysql_connection.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/mysql_connection.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python MySQL Connection # 描述:封装一个 MySQL 连接类,继承自 MySQLConnector,请先完成【Python MySQL Connector】 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/mysql_connector.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/mysql_connector.py" index 6d38e07..4d60fa0 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/mysql_connector.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/mysql_connector.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python MySQL Connector # 描述:封装一个 MySQL 的连接器,支持 open/close diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/mysql_install.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/mysql_install.py" index bb34139..7a7a041 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/mysql_install.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/mysql_install.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python MySQL 安装说明 # 描述:本机测试需要先安装 mysql,假设密码是123456,请勿在命令行下直接输入密码 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/mysql_kv.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/mysql_kv.py" index 5f6de03..6051441 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/mysql_kv.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/mysql_kv.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python MySQL 读写 # 描述:使用 MySQL 实现一个 key-value(string:json) 读写库,请先完成【Python MySQL 安装说明】、【Python MySQL Connector】和【Python MySQL Connection】 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/redis_connector.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/redis_connector.py" index 3f96608..01b72f5 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/redis_connector.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/redis_connector.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python Redis 连接器 # 描述:实现一个 redis 连接器,能打开/关闭 redis 连结,使用连接池 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/redis_install.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/redis_install.py" index 7dd3ec2..ac74242 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/redis_install.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/redis_install.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python Redis 安装说明 # 描述:熟悉 Redis 的基本安装,能启动 redis 服务,进入 redis 客户端操作 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/redis_kv.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/redis_kv.py" index eb8db33..9728009 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/redis_kv.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/redis_kv.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python Redis 读写 # 描述:使用 Redis 实现一个 key-value(string:json) 读写库。请先完成【Python Redis 安装说明】和【Python Redis 连接器】 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/sqlite_connection.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/sqlite_connection.py" index a1f3e1b..1e37773 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/sqlite_connection.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/sqlite_connection.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python SQLITE Connection # 描述:继承自 SqliteConnector,增加执行sql接口,请先完成【Python SQLITE Connector】 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/sqlite_connector.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/sqlite_connector.py" index 591994a..9f54b3f 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/sqlite_connector.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/sqlite_connector.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python SQLITE Connector # 描述:对 sqlite3 做一个基本的封装,支持 open/close diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/sqlite_kv.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/sqlite_kv.py" index b48ce76..6eef180 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/sqlite_kv.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/4.\346\225\260\346\215\256\345\272\223\346\223\215\344\275\234/sqlite_kv.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python SQLITE 读写 # 描述:使用 SQLITE 实现一个 key-value(string:json) 读写库,请先完成【Python SQLITE Connector】和【Python SQLITE Connection】 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/5.\346\223\215\344\275\234\347\263\273\347\273\237\345\222\214\347\216\257\345\242\203/os_info.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/5.\346\223\215\344\275\234\347\263\273\347\273\237\345\222\214\347\216\257\345\242\203/os_info.py" index 182f16c..e23a93b 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/5.\346\223\215\344\275\234\347\263\273\347\273\237\345\222\214\347\216\257\345\242\203/os_info.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/5.\346\223\215\344\275\234\347\263\273\347\273\237\345\222\214\347\216\257\345\242\203/os_info.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 操作系统信息 # 描述:提示用户输入查看信息选项,输出对应操作系统信息,使用配置驱动的程序模式 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/5.\346\223\215\344\275\234\347\263\273\347\273\237\345\222\214\347\216\257\345\242\203/platform_info.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/5.\346\223\215\344\275\234\347\263\273\347\273\237\345\222\214\347\216\257\345\242\203/platform_info.py" index c252e9d..85a21b4 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/5.\346\223\215\344\275\234\347\263\273\347\273\237\345\222\214\347\216\257\345\242\203/platform_info.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/5.\346\223\215\344\275\234\347\263\273\347\273\237\345\222\214\347\216\257\345\242\203/platform_info.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 操作系统信息 # 描述:提示用户输入选项,输出对应选项类型的平台信息 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/6.\346\272\220\347\240\201\346\211\223\345\214\205/package.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/6.\346\272\220\347\240\201\346\211\223\345\214\205/package.py" index 9def2e9..b3aae36 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/6.\346\272\220\347\240\201\346\211\223\345\214\205/package.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/6.\346\272\220\347\240\201\346\211\223\345\214\205/package.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 打包 # 描述:打印出 Python 打包目录层次结构,类似命令行 tree 的效果 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/7.\347\275\221\347\273\234\347\274\226\347\250\213/tcp.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/7.\347\275\221\347\273\234\347\274\226\347\250\213/tcp.py" index e227395..9d7b4a5 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/7.\347\275\221\347\273\234\347\274\226\347\250\213/tcp.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/7.\347\275\221\347\273\234\347\274\226\347\250\213/tcp.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 网络编程(1) # 描述:编写一个简易的 ECHO 服务机器人。
客户端发送文本,服务端回复同样的文本,两边都打印各自收到的文本。
支持每次不大于 140 的文本输入,如果超出则提示重新输入。 diff --git "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/8.\345\217\221\351\200\201\351\202\256\344\273\266/send_mail.py" "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/8.\345\217\221\351\200\201\351\202\256\344\273\266/send_mail.py" index 66d7b60..8874fbb 100644 --- "a/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/8.\345\217\221\351\200\201\351\202\256\344\273\266/send_mail.py" +++ "b/data/2.python\344\270\255\351\230\266/1.\345\237\272\346\234\254\346\212\200\350\203\275/8.\345\217\221\351\200\201\351\202\256\344\273\266/send_mail.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python mail # 描述:发送QQ邮件 diff --git "a/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/1.Web\345\274\200\345\217\221\345\237\272\347\241\200\347\237\245\350\257\206/error_code.py" "b/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/1.Web\345\274\200\345\217\221\345\237\272\347\241\200\347\237\245\350\257\206/error_code.py" index 6b83050..8707a84 100644 --- "a/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/1.Web\345\274\200\345\217\221\345\237\272\347\241\200\347\237\245\350\257\206/error_code.py" +++ "b/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/1.Web\345\274\200\345\217\221\345\237\272\347\241\200\347\237\245\350\257\206/error_code.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:错误码处理 # 描述:编写一个错误码枚举,支持转换成字符串格式方法: internal_ret_2_http diff --git "a/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/1.Web\345\274\200\345\217\221\345\237\272\347\241\200\347\237\245\350\257\206/router.py" "b/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/1.Web\345\274\200\345\217\221\345\237\272\347\241\200\347\237\245\350\257\206/router.py" index a243687..958c191 100644 --- "a/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/1.Web\345\274\200\345\217\221\345\237\272\347\241\200\347\237\245\350\257\206/router.py" +++ "b/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/1.Web\345\274\200\345\217\221\345\237\272\347\241\200\347\237\245\350\257\206/router.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:路由器 # 描述:编写一个路由服务,主持注入路由配置,正确处理请求参数 diff --git "a/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/1.Web\345\274\200\345\217\221\345\237\272\347\241\200\347\237\245\350\257\206/server.py" "b/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/1.Web\345\274\200\345\217\221\345\237\272\347\241\200\347\237\245\350\257\206/server.py" index 54016ea..8335e1e 100644 --- "a/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/1.Web\345\274\200\345\217\221\345\237\272\347\241\200\347\237\245\350\257\206/server.py" +++ "b/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/1.Web\345\274\200\345\217\221\345\237\272\347\241\200\347\237\245\350\257\206/server.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python Web 服务模拟器 # 描述:模拟一个 Web 服务,创建资源,删除一个符合条件的资源,总数应该为0 diff --git "a/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/1.Web\345\274\200\345\217\221\345\237\272\347\241\200\347\237\245\350\257\206/store.py" "b/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/1.Web\345\274\200\345\217\221\345\237\272\347\241\200\347\237\245\350\257\206/store.py" index 6f5a53b..a13a15f 100644 --- "a/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/1.Web\345\274\200\345\217\221\345\237\272\347\241\200\347\237\245\350\257\206/store.py" +++ "b/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/1.Web\345\274\200\345\217\221\345\237\272\347\241\200\347\237\245\350\257\206/store.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:状态存储 # 描述:使用dict数据结构,实现创建、删除、查询总数存储接口,创建/删除同一个资源后,总是应该为0 diff --git "a/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/1.Web\345\274\200\345\217\221\345\237\272\347\241\200\347\237\245\350\257\206/validator.py" "b/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/1.Web\345\274\200\345\217\221\345\237\272\347\241\200\347\237\245\350\257\206/validator.py" index 249a556..1f0d9f0 100644 --- "a/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/1.Web\345\274\200\345\217\221\345\237\272\347\241\200\347\237\245\350\257\206/validator.py" +++ "b/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/1.Web\345\274\200\345\217\221\345\237\272\347\241\200\347\237\245\350\257\206/validator.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:参数校验 # 描述:使用 jsonschema 校验参数,key:字符串类型, value:数字, condition: 数字 diff --git "a/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/2. Django/howto.py" "b/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/2. Django/howto.py" index cd516cd..3e6c49c 100644 --- "a/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/2. Django/howto.py" +++ "b/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/2. Django/howto.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python Django 框架 # 描述:自己动手,丰衣足食,打印 Django 教程的入口信息 diff --git "a/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/3. Tornado/hello.py" "b/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/3. Tornado/hello.py" index d8845b6..097bd1d 100644 --- "a/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/3. Tornado/hello.py" +++ "b/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/3. Tornado/hello.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python tornado 框架 # 描述:tornado 服务,极简路由 diff --git "a/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/4. Flask/server.py" "b/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/4. Flask/server.py" index 89169c2..62c542f 100644 --- "a/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/4. Flask/server.py" +++ "b/data/2.python\344\270\255\351\230\266/2.Web\345\272\224\347\224\250\345\274\200\345\217\221/4. Flask/server.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Flask简单使用 # 描述:用flask启动web服务 diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/1.urllib/get_html.py" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/1.urllib/get_html.py" index a011f0b..200bb0e 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/1.urllib/get_html.py" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/1.urllib/get_html.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:行走的人偶 +# 作者:zxm2015 # 标题:urlib 获取网页(1) # 描述:将 url 对应的网页下载到本地 diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/1.urllib/post.py" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/1.urllib/post.py" index 65447cd..b40b452 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/1.urllib/post.py" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/1.urllib/post.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:行走的人偶 +# 作者:zxm2015 # 标题:urllib post请求 # 描述:urllib post请求 diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/1.urllib/with_headers.py" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/1.urllib/with_headers.py" index b75c13c..a667f28 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/1.urllib/with_headers.py" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/1.urllib/with_headers.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:行走的人偶 +# 作者:zxm2015 # 标题:urlib 获取网页(2) with header # 描述:将 url 对应的网页下载到本地 diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/2.\346\255\243\345\210\231\350\241\250\350\276\276\345\274\217/chinese01.py" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/2.\346\255\243\345\210\231\350\241\250\350\276\276\345\274\217/chinese01.py" index 40f379a..fb4f7f8 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/2.\346\255\243\345\210\231\350\241\250\350\276\276\345\274\217/chinese01.py" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/2.\346\255\243\345\210\231\350\241\250\350\276\276\345\274\217/chinese01.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:行走的人偶 +# 作者:zxm2015 # 标题:Python 中文处理(1) # 描述:获取中文个数 diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/2.\346\255\243\345\210\231\350\241\250\350\276\276\345\274\217/chinese02.py" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/2.\346\255\243\345\210\231\350\241\250\350\276\276\345\274\217/chinese02.py" index 7350a2e..fbd8074 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/2.\346\255\243\345\210\231\350\241\250\350\276\276\345\274\217/chinese02.py" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/2.\346\255\243\345\210\231\350\241\250\350\276\276\345\274\217/chinese02.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:行走的人偶 +# 作者:zxm2015 # 标题:Python 中文处理(2) # 描述:获取中文个数 diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/2.\346\255\243\345\210\231\350\241\250\350\276\276\345\274\217/find_ip_address.py" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/2.\346\255\243\345\210\231\350\241\250\350\276\276\345\274\217/find_ip_address.py" index 72e43fe..c17534d 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/2.\346\255\243\345\210\231\350\241\250\350\276\276\345\274\217/find_ip_address.py" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/2.\346\255\243\345\210\231\350\241\250\350\276\276\345\274\217/find_ip_address.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:正则表达式实战(2) # 描述:查找字符串里含有的全部 IPV4 和 IPV6 地址 diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/2.\346\255\243\345\210\231\350\241\250\350\276\276\345\274\217/remove_html.py" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/2.\346\255\243\345\210\231\350\241\250\350\276\276\345\274\217/remove_html.py" index fc10dad..ef6bfb8 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/2.\346\255\243\345\210\231\350\241\250\350\276\276\345\274\217/remove_html.py" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/2.\346\255\243\345\210\231\350\241\250\350\276\276\345\274\217/remove_html.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:行走的人偶 +# 作者:zxm2015 # 标题:正则表达式实战(1) # 描述:去除html标签 diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/3.Beautiful Soup/get_p.py" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/3.Beautiful Soup/get_p.py" index 1b22726..c8751b8 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/3.Beautiful Soup/get_p.py" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/3.Beautiful Soup/get_p.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:行走的人偶 +# 作者:zxm2015 # 标题:BeautifulSoup 获取所有p标签 # 描述:获取所有p标签 @@ -27,5 +27,6 @@ def test(): p_text = fetch_p(html) print(p_text) + if __name__ == '__main__': - test() \ No newline at end of file + test() diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/3.Beautiful Soup/get_text.py" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/3.Beautiful Soup/get_text.py" index 296b871..958053d 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/3.Beautiful Soup/get_text.py" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/3.Beautiful Soup/get_text.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:行走的人偶 +# 作者:zxm2015 # 标题:BeautifulSoup 获取text # 描述:获取网页的text @@ -26,5 +26,6 @@ def test(): text = fetch_text(html) print(text) + if __name__ == '__main__': - test() \ No newline at end of file + test() diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/3.Beautiful Soup/html_parer.py" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/3.Beautiful Soup/html_parer.py" index 8e21950..8a7989b 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/3.Beautiful Soup/html_parer.py" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/3.Beautiful Soup/html_parer.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:行走的人偶 +# 作者:zxm2015 # 标题:BeautifulSoup # 描述:获取代码 diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/4.lxml/get_html_appoint_p.py" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/4.lxml/get_html_appoint_p.py" index aa48c5e..5300922 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/4.lxml/get_html_appoint_p.py" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/4.lxml/get_html_appoint_p.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:行走的人偶 +# 作者:zxm2015 # 标题:lxml解析网页 # 描述:获取指定p diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/4.lxml/get_html_p.py" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/4.lxml/get_html_p.py" index 9754946..1e2dcb2 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/4.lxml/get_html_p.py" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/4.lxml/get_html_p.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:行走的人偶 +# 作者:zxm2015 # 标题:lxml解析网页 # 描述:获取所有p diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/4.lxml/get_html_text.py" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/4.lxml/get_html_text.py" index c21325e..ab0e0ca 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/4.lxml/get_html_text.py" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/4.lxml/get_html_text.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:行走的人偶 +# 作者:zxm2015 # 标题:lxml解析网页 # 描述:获取text diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/5.requests/get_html.py" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/5.requests/get_html.py" index 3fd8209..e111f80 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/5.requests/get_html.py" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/5.requests/get_html.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:行走的人偶 +# 作者:zxm2015 # 标题:requests 获取网页(1) # 描述:将url对应的网页下载到本地 diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/5.requests/post.py" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/5.requests/post.py" index 4ed2a6f..be90266 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/5.requests/post.py" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/5.requests/post.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:行走的人偶 +# 作者:zxm2015 # 标题:requests post 请求 # 描述:requests post 请求 diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/5.requests/with_headers.py" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/5.requests/with_headers.py" index 8b00d44..9d875bb 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/5.requests/with_headers.py" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/5.requests/with_headers.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:行走的人偶 +# 作者:zxm2015 # 标题:requests 获取网页(2) with headers # 描述:将url对应的网页下载到本地 diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/7.Scrapy\346\241\206\346\236\266/so_tag_spider.py" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/7.Scrapy\346\241\206\346\236\266/so_tag_spider.py" index 4e95e36..bbd014e 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/7.Scrapy\346\241\206\346\236\266/so_tag_spider.py" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/7.Scrapy\346\241\206\346\236\266/so_tag_spider.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 爬虫 # 描述:爬取 stackoverflow 标签 diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/7.Scrapy\346\241\206\346\236\266/tag_pipeline.py" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/7.Scrapy\346\241\206\346\236\266/tag_pipeline.py" index 91a6b98..0d3d6e0 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/7.Scrapy\346\241\206\346\236\266/tag_pipeline.py" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/7.Scrapy\346\241\206\346\236\266/tag_pipeline.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 爬虫(1) # 描述:实现一个用以 scrapy 爬虫处理中保存 stackoverflow 标签数据的管道处理类 # 爬虫管道类必须实现3个方法 diff --git "a/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/1.Tkinter/app.py" "b/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/1.Tkinter/app.py" index b23b393..15d5301 100644 --- "a/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/1.Tkinter/app.py" +++ "b/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/1.Tkinter/app.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python Tkinter 开发应用 # 描述:设计GUI组件 diff --git "a/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/1.Tkinter/basic.py" "b/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/1.Tkinter/basic.py" index d7815e1..1730b10 100644 --- "a/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/1.Tkinter/basic.py" +++ "b/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/1.Tkinter/basic.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python Tkinter 开发应用基础 # 描述:基本的控件组装 @@ -35,6 +35,7 @@ class NumberRecorder: def on_click(self, i): self.numbers.append(i) + if __name__ == '__main__': app = NumberRecorder() app.render() diff --git "a/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/2.PyQT/for_each_month.py" "b/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/2.PyQT/for_each_month.py" index c27e29d..f443261 100644 --- "a/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/2.PyQT/for_each_month.py" +++ "b/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/2.PyQT/for_each_month.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python PyQt 进度条(3) # 描述:请先完成上一题。使用封装好的 PyQT 进度条显示2008年1月到本月的每个月1号进度。经过层层封装,到这里主要是上层的组合逻辑了。 diff --git "a/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/2.PyQT/q_progress_bar.py" "b/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/2.PyQT/q_progress_bar.py" index 5e7c156..b4d9408 100644 --- "a/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/2.PyQT/q_progress_bar.py" +++ "b/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/2.PyQT/q_progress_bar.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python PyQt 进度条(2) # 描述:请先完成上一题。封装一个能显示进度条的 PyQT GUI 对话框 import sys diff --git "a/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/2.PyQT/q_progress_thread.py" "b/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/2.PyQT/q_progress_thread.py" index 3f02a19..5eb7590 100644 --- "a/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/2.PyQT/q_progress_thread.py" +++ "b/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/2.PyQT/q_progress_thread.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python PyQt 进度条(1) # 描述:使用 QThread 发送信号,接收信号一方打印并结束程序 import sys diff --git "a/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/3.WxPython/event.py" "b/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/3.WxPython/event.py" index bf2e853..decb68f 100644 --- "a/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/3.WxPython/event.py" +++ "b/data/2.python\344\270\255\351\230\266/4.\346\241\214\351\235\242\345\272\224\347\224\250\345\274\200\345\217\221/3.WxPython/event.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python WxPython 例子 # 描述:创建窗口、菜单、显示文本,关闭 diff --git "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/1.NumPy\346\246\202\350\277\260/top_n.py" "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/1.NumPy\346\246\202\350\277\260/top_n.py" index 8c72e0a..b79a32a 100644 --- "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/1.NumPy\346\246\202\350\277\260/top_n.py" +++ "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/1.NumPy\346\246\202\350\277\260/top_n.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:numpy 应用之 topn # 描述:取 list 的 topn diff --git "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/2.\345\256\211\350\243\205\351\205\215\347\275\256/install.py" "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/2.\345\256\211\350\243\205\351\205\215\347\275\256/install.py" index 64652ff..b546868 100644 --- "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/2.\345\256\211\350\243\205\351\205\215\347\275\256/install.py" +++ "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/2.\345\256\211\350\243\205\351\205\215\347\275\256/install.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python numpy 安装 # 描述:正确打印安装顺序 diff --git "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/3.\345\210\233\345\273\272\346\225\260\347\273\204/convert_from_array.py" "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/3.\345\210\233\345\273\272\346\225\260\347\273\204/convert_from_array.py" index 5c0cb31..912fdb5 100644 --- "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/3.\345\210\233\345\273\272\346\225\260\347\273\204/convert_from_array.py" +++ "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/3.\345\210\233\345\273\272\346\225\260\347\273\204/convert_from_array.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:numpy应用之创建数组 # 描述:从其他结构转换数组 # 创建一维数组 diff --git "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/3.\345\210\233\345\273\272\346\225\260\347\273\204/create_1d.py" "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/3.\345\210\233\345\273\272\346\225\260\347\273\204/create_1d.py" index 99051f1..504b85a 100644 --- "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/3.\345\210\233\345\273\272\346\225\260\347\273\204/create_1d.py" +++ "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/3.\345\210\233\345\273\272\346\225\260\347\273\204/create_1d.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:numpy应用之创建一数组 # 描述:几种创建一维数组的例子 # diff --git "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/3.\345\210\233\345\273\272\346\225\260\347\273\204/create_2d.py" "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/3.\345\210\233\345\273\272\346\225\260\347\273\204/create_2d.py" index 1f7ad03..257e5dc 100644 --- "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/3.\345\210\233\345\273\272\346\225\260\347\273\204/create_2d.py" +++ "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/3.\345\210\233\345\273\272\346\225\260\347\273\204/create_2d.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:numpy应用之创建二数组 # 描述:几种创建二维数组的例子 diff --git "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/4.\346\223\215\344\275\234\346\225\260\347\273\204/operate_array.py" "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/4.\346\223\215\344\275\234\346\225\260\347\273\204/operate_array.py" index 90f9c40..7a7cd3c 100644 --- "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/4.\346\223\215\344\275\234\346\225\260\347\273\204/operate_array.py" +++ "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/4.\346\223\215\344\275\234\346\225\260\347\273\204/operate_array.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:VegetableBirdNLPer +# 作者:qq_44193969 # 标题:numpy应用之操作数组 # 描述:数组运算 diff --git "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/5.\345\270\270\347\224\250\345\207\275\346\225\260/common_fun.py" "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/5.\345\270\270\347\224\250\345\207\275\346\225\260/common_fun.py" index acb3dd9..6533474 100644 --- "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/5.\345\270\270\347\224\250\345\207\275\346\225\260/common_fun.py" +++ "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/5.\345\270\270\347\224\250\345\207\275\346\225\260/common_fun.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:VegetableBirdNLPer +# 作者:qq_44193969 # 标题:numpy的常用函数 # 描述:用numpy做数据分析 diff --git "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/6.\346\216\251\347\240\201\346\225\260\347\273\204/mask_array_01.py" "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/6.\346\216\251\347\240\201\346\225\260\347\273\204/mask_array_01.py" index f80b7f4..3b08942 100644 --- "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/6.\346\216\251\347\240\201\346\225\260\347\273\204/mask_array_01.py" +++ "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/6.\346\216\251\347\240\201\346\225\260\347\273\204/mask_array_01.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:VegetableBirdNLPer +# 作者:qq_44193969 # 标题:numpy掩码数组 # 描述:走进掩码数组 diff --git "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/6.\346\216\251\347\240\201\346\225\260\347\273\204/mask_array_02.py" "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/6.\346\216\251\347\240\201\346\225\260\347\273\204/mask_array_02.py" index 16612af..7f85708 100644 --- "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/6.\346\216\251\347\240\201\346\225\260\347\273\204/mask_array_02.py" +++ "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/6.\346\216\251\347\240\201\346\225\260\347\273\204/mask_array_02.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:VegetableBirdNLPer +# 作者:qq_44193969 # 标题:numpy掩码数组的创建 # 描述:创建掩码数组,将位置的值设置为无效 diff --git "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/6.\346\216\251\347\240\201\346\225\260\347\273\204/mask_array_03.py" "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/6.\346\216\251\347\240\201\346\225\260\347\273\204/mask_array_03.py" index bf1a85c..4d1ad54 100644 --- "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/6.\346\216\251\347\240\201\346\225\260\347\273\204/mask_array_03.py" +++ "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/6.\346\216\251\347\240\201\346\225\260\347\273\204/mask_array_03.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:VegetableBirdNLPer +# 作者:qq_44193969 # 标题:numpy掩码数组的创建 # 描述:创建掩码数组,将大于等于指定值的数组元素掩盖 diff --git "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/7.\347\237\251\351\230\265\345\257\271\350\261\241/matrix.py" "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/7.\347\237\251\351\230\265\345\257\271\350\261\241/matrix.py" index 5907e74..8f58e99 100644 --- "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/7.\347\237\251\351\230\265\345\257\271\350\261\241/matrix.py" +++ "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/7.\347\237\251\351\230\265\345\257\271\350\261\241/matrix.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:VegetableBirdNLPer +# 作者:qq_44193969 # 标题:numpy之矩阵对象 # 描述:创建矩阵对象及矩阵对象的属性 # 数组 a: diff --git "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/8.\351\232\217\346\234\272\346\212\275\346\240\267\345\255\220\346\250\241\345\235\227/binomial_distribution.py" "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/8.\351\232\217\346\234\272\346\212\275\346\240\267\345\255\220\346\250\241\345\235\227/binomial_distribution.py" index 29fb519..d8b1a27 100644 --- "a/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/8.\351\232\217\346\234\272\346\212\275\346\240\267\345\255\220\346\250\241\345\235\227/binomial_distribution.py" +++ "b/data/3.python\351\253\230\351\230\266/1.\347\247\221\345\255\246\350\256\241\347\256\227\345\237\272\347\241\200\350\275\257\344\273\266\345\214\205NumPy/8.\351\232\217\346\234\272\346\212\275\346\240\267\345\255\220\346\250\241\345\235\227/binomial_distribution.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:VegetableBirdNLPer +# 作者:qq_44193969 # 标题:numpy随机抽样 # 描述:随机抽样函数 diff --git "a/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/1.Pandas\346\246\202\350\247\210/dataframe.py" "b/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/1.Pandas\346\246\202\350\247\210/dataframe.py" index 9138e89..9d2b6b5 100644 --- "a/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/1.Pandas\346\246\202\350\247\210/dataframe.py" +++ "b/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/1.Pandas\346\246\202\350\247\210/dataframe.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:pandas DataFrame # 描述:打印乘法表 diff --git "a/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/1.Pandas\346\246\202\350\247\210/series.py" "b/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/1.Pandas\346\246\202\350\247\210/series.py" index a32687d..acb75c1 100644 --- "a/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/1.Pandas\346\246\202\350\247\210/series.py" +++ "b/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/1.Pandas\346\246\202\350\247\210/series.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:pandas Series # 描述:打印 cos 函数 0-3.14 区间内,步长 3.14/1000 的数值序列 diff --git "a/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/2.\346\225\260\346\215\256\347\273\223\346\236\204/dataframe.py" "b/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/2.\346\225\260\346\215\256\347\273\223\346\236\204/dataframe.py" index 2e2c899..86c65c7 100644 --- "a/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/2.\346\225\260\346\215\256\347\273\223\346\236\204/dataframe.py" +++ "b/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/2.\346\225\260\346\215\256\347\273\223\346\236\204/dataframe.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:pandas 创建dataframe # 描述:创建dataframe的几种方式 diff --git "a/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/2.\346\225\260\346\215\256\347\273\223\346\236\204/series.py" "b/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/2.\346\225\260\346\215\256\347\273\223\346\236\204/series.py" index 5aaab01..8e5b5a4 100644 --- "a/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/2.\346\225\260\346\215\256\347\273\223\346\236\204/series.py" +++ "b/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/2.\346\225\260\346\215\256\347\273\223\346\236\204/series.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:pandas Series 2 # 描述:类似字典的操作,比对两个Series的index,匹配相同key的值,输出匹配对 diff --git "a/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/3.\345\237\272\346\234\254\346\223\215\344\275\234/iloc.py" "b/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/3.\345\237\272\346\234\254\346\223\215\344\275\234/iloc.py" index 4a1a219..33e95f6 100644 --- "a/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/3.\345\237\272\346\234\254\346\223\215\344\275\234/iloc.py" +++ "b/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/3.\345\237\272\346\234\254\346\223\215\344\275\234/iloc.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:pandas dataframe 3.2 # 描述:iloc 操作过滤掉中间人信息 # 输出: @@ -17,6 +17,7 @@ import pandas as pd + def test(): d = [ ['Alice', 'Bob', 'Middle'], @@ -30,5 +31,6 @@ def test(): print(row) print('') + if __name__ == '__main__': - test() \ No newline at end of file + test() diff --git "a/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/3.\345\237\272\346\234\254\346\223\215\344\275\234/loc.py" "b/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/3.\345\237\272\346\234\254\346\223\215\344\275\234/loc.py" index d382d26..455f3e8 100644 --- "a/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/3.\345\237\272\346\234\254\346\223\215\344\275\234/loc.py" +++ "b/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/3.\345\237\272\346\234\254\346\223\215\344\275\234/loc.py" @@ -1,10 +1,11 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:pandas dataframe 3.1 # 描述:loc 操作过滤掉中间人信息 import pandas as pd + def test(): d = { 'name': ['Alice', 'Bob', 'Middle'], @@ -18,5 +19,6 @@ def test(): alice_bob = df.loc[df['name'] != 'Middle'] print(alice_bob) + if __name__ == '__main__': - test() \ No newline at end of file + test() diff --git "a/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/4.\351\253\230\347\272\247\345\272\224\347\224\250/stat.py" "b/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/4.\351\253\230\347\272\247\345\272\224\347\224\250/stat.py" index 7039532..f14d414 100644 --- "a/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/4.\351\253\230\347\272\247\345\272\224\347\224\250/stat.py" +++ "b/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/4.\351\253\230\347\272\247\345\272\224\347\224\250/stat.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:pandas dataframe之apply # 描述:apply的使用 @@ -16,12 +16,12 @@ def add_val(num): if __name__ == '__main__': data = { - 'cloumn_one': pd.Series(np.random.randint(-10,10, size=5)), - 'cloumn_two': pd.Series(np.random.randint(0,10, size=5)), - 'cloumn_three': pd.Series(np.random.randint(0,10, size=5)) - } + 'cloumn_one': pd.Series(np.random.randint(-10, 10, size=5)), + 'cloumn_two': pd.Series(np.random.randint(0, 10, size=5)), + 'cloumn_three': pd.Series(np.random.randint(0, 10, size=5)) + } data_df = pd.DataFrame(data) data_df['label_one'] = data['cloumn_one'].apply(add_val) - print(data_df) \ No newline at end of file + print(data_df) diff --git "a/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/1.\345\256\211\350\243\205\351\205\215\347\275\256/install.py" "b/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/1.\345\256\211\350\243\205\351\205\215\347\275\256/install.py" index 717307f..e9eca8b 100644 --- "a/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/1.\345\256\211\350\243\205\351\205\215\347\275\256/install.py" +++ "b/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/1.\345\256\211\350\243\205\351\205\215\347\275\256/install.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python Matplot 安装 # 描述:正确打印安装顺序 @@ -18,5 +18,6 @@ def test(): for i in range(1, len(items)): print(f" {items[i]}") + if __name__ == '__main__': - test() \ No newline at end of file + test() diff --git "a/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/2.Matplotlib\345\277\253\351\200\237\345\205\245\351\227\250/sin.py" "b/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/2.Matplotlib\345\277\253\351\200\237\345\205\245\351\227\250/sin.py" index 1c21801..305c698 100644 --- "a/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/2.Matplotlib\345\277\253\351\200\237\345\205\245\351\227\250/sin.py" +++ "b/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/2.Matplotlib\345\277\253\351\200\237\345\205\245\351\227\250/sin.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python Matplot 绘制1 # 描述:绘制 cos(x)-sin(x)+2cos(x/2)-2sin(x/2) + ... + ncos(x/n)-nsin(x/n) @@ -20,6 +20,7 @@ def sum(m, n, s): return X, C+S + if __name__ == '__main__': X, Y = sum(256, 10, 10) plt.plot(X, Y) diff --git "a/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/3.\345\233\276\345\275\242\347\273\230\345\210\266/plot_bezier.py" "b/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/3.\345\233\276\345\275\242\347\273\230\345\210\266/plot_bezier.py" index 93b4a16..a0186bf 100644 --- "a/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/3.\345\233\276\345\275\242\347\273\230\345\210\266/plot_bezier.py" +++ "b/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/3.\345\233\276\345\275\242\347\273\230\345\210\266/plot_bezier.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python Matplot 曲线绘制1 # 描述:10次进行割角细分,得到Bezier曲线 diff --git "a/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/3.\345\233\276\345\275\242\347\273\230\345\210\266/plot_love.py" "b/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/3.\345\233\276\345\275\242\347\273\230\345\210\266/plot_love.py" index e46c12a..fe657c3 100644 --- "a/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/3.\345\233\276\345\275\242\347\273\230\345\210\266/plot_love.py" +++ "b/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/3.\345\233\276\345\275\242\347\273\230\345\210\266/plot_love.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 绘制爱心 # 描述:使用参数曲线绘制10个爱心 @@ -16,6 +16,7 @@ def love_t(i, a, b, c): t = -a*np.sqrt(b-c*abs(i)) return t + if __name__ == '__main__': i = np.linspace(-2, 2, 100) x = love_s(i, 1, 1, 2) diff --git "a/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/4.\351\243\216\346\240\274\345\222\214\346\240\267\345\274\217/style.py" "b/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/4.\351\243\216\346\240\274\345\222\214\346\240\267\345\274\217/style.py" index 3bbb188..f782769 100644 --- "a/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/4.\351\243\216\346\240\274\345\222\214\346\240\267\345\274\217/style.py" +++ "b/data/3.python\351\253\230\351\230\266/3.\347\273\230\345\233\276\345\272\223Matplotlib/4.\351\243\216\346\240\274\345\222\214\346\240\267\345\274\217/style.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python Matplot 风格绘制 # 描述:风格绘制 cos(x)-sin(x)+2cos(x/2)-2sin(x/2) + ... + ncos(x/n)-nsin(x/n) @@ -9,7 +9,6 @@ import matplotlib.pyplot as plt from random import randint - color_table = [ {"name": "Air Force blue", "value": "#5d8aa8", "lightness": "51.2"}, {"name": "Alice blue", "value": "#f0f8ff", "lightness": "97.1"}, @@ -42,21 +41,22 @@ def sum(m, n, s): return X, C+S + if __name__ == '__main__': X, Y = sum(256, 10, 10) plt.plot(X, Y, 'y', linewidth=1.0, linestyle="--", - label="y1", color=random_hex_colors()) + label="y1", color=random_hex_colors()) X, Y = sum(256, 20, 10) plt.plot(X, Y, 'y', linewidth=2.0, linestyle="-.", - label="y2", color=random_hex_colors()) + label="y2", color=random_hex_colors()) X, Y = sum(256, 5, 10) plt.plot(X, Y, 'y', linewidth=2.0, linestyle="-", - label="y2", color=random_hex_colors()) + label="y2", color=random_hex_colors()) X, Y = sum(256, 15, 10) plt.plot(X, Y, 'y', linewidth=2.0, linestyle=":", - label="y2", color=random_hex_colors()) + label="y2", color=random_hex_colors()) plt.show() diff --git "a/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/1.SciPy\346\246\202\350\247\210/scipy.py" "b/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/1.SciPy\346\246\202\350\247\210/scipy.py" index a8c81a9..4b7a1a2 100644 --- "a/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/1.SciPy\346\246\202\350\247\210/scipy.py" +++ "b/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/1.SciPy\346\246\202\350\247\210/scipy.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python SciPy # 描述:正确打印 SciPy 中英对照介绍,输出: # @@ -63,5 +63,6 @@ def test(): for pkg in sci_py_meta['packages']: print(" * {}".format(pkg)) + if __name__ == '__main__': - test() \ No newline at end of file + test() diff --git "a/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/2.\345\256\211\350\243\205\351\205\215\347\275\256/install.py" "b/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/2.\345\256\211\350\243\205\351\205\215\347\275\256/install.py" index f8fccb5..763c109 100644 --- "a/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/2.\345\256\211\350\243\205\351\205\215\347\275\256/install.py" +++ "b/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/2.\345\256\211\350\243\205\351\205\215\347\275\256/install.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python SciPy # 描述:编写 python 代码执行 pip 命令安装 SciPy 相关的包,出错后能重新执行断点续装 diff --git "a/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/3.\346\225\260\346\215\256\346\217\222\345\200\274/b_spline.py" "b/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/3.\346\225\260\346\215\256\346\217\222\345\200\274/b_spline.py" index 484e5f1..7f10e08 100644 --- "a/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/3.\346\225\260\346\215\256\346\217\222\345\200\274/b_spline.py" +++ "b/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/3.\346\225\260\346\215\256\346\217\222\345\200\274/b_spline.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 插值 # 描述:手工实现一个和 scipy.interpolate.BSpline 等价的B样条函数 bspline diff --git "a/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/3.\346\225\260\346\215\256\346\217\222\345\200\274/inter_1.py" "b/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/3.\346\225\260\346\215\256\346\217\222\345\200\274/inter_1.py" index 856c0ce..2adb4f5 100644 --- "a/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/3.\346\225\260\346\215\256\346\217\222\345\200\274/inter_1.py" +++ "b/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/3.\346\225\260\346\215\256\346\217\222\345\200\274/inter_1.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 插值 # 描述:封装一个便利的插值函数,支持 线性插值、三次插值、样条曲线 三种类型 diff --git "a/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/4.\346\233\262\347\272\277\346\213\237\345\220\210/curve_fit.py" "b/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/4.\346\233\262\347\272\277\346\213\237\345\220\210/curve_fit.py" index 87fe386..13ab590 100644 --- "a/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/4.\346\233\262\347\272\277\346\213\237\345\220\210/curve_fit.py" +++ "b/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/4.\346\233\262\347\272\277\346\213\237\345\220\210/curve_fit.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 曲线拟合 # 描述:使用 SciPy 拟合曲线 @@ -11,6 +11,7 @@ import matplotlib.pyplot as plt def func(x, a, b, c): return a * np.cos(x) - b*np.sin(x) + c*np.cos(2*x) + if __name__ == '__main__': i = np.linspace(0, 4, 50) x = func(i, 2.5, 1.3, 0.5) diff --git "a/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/4.\346\233\262\347\272\277\346\213\237\345\220\210/leastsq.py" "b/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/4.\346\233\262\347\272\277\346\213\237\345\220\210/leastsq.py" index 08a83a2..ee3cc75 100644 --- "a/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/4.\346\233\262\347\272\277\346\213\237\345\220\210/leastsq.py" +++ "b/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/4.\346\233\262\347\272\277\346\213\237\345\220\210/leastsq.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 最小二乘拟合 # 描述:分别使用 numpy 和 SciPy 实现最小二乘拟合,值应该相等 diff --git "a/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/5.\345\202\205\351\207\214\345\217\266\345\217\230\346\215\242/fft.py" "b/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/5.\345\202\205\351\207\214\345\217\266\345\217\230\346\215\242/fft.py" index e5b2d83..1552fa2 100644 --- "a/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/5.\345\202\205\351\207\214\345\217\266\345\217\230\346\215\242/fft.py" +++ "b/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/5.\345\202\205\351\207\214\345\217\266\345\217\230\346\215\242/fft.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 傅立叶变换 # 描述:傅立叶变换是可逆的,请在正向变换+反向变换后打印,曲线应该完全重合 diff --git "a/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/5.\345\202\205\351\207\214\345\217\266\345\217\230\346\215\242/rfft.py" "b/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/5.\345\202\205\351\207\214\345\217\266\345\217\230\346\215\242/rfft.py" index f3e7759..898f3f7 100644 --- "a/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/5.\345\202\205\351\207\214\345\217\266\345\217\230\346\215\242/rfft.py" +++ "b/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/5.\345\202\205\351\207\214\345\217\266\345\217\230\346\215\242/rfft.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 傅立叶变换 # 描述:计算实数序列的离散傅立叶变换,许多机器翻译把 real 翻译成 "实际",那都是错的! diff --git "a/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/6.\345\233\276\345\203\217\345\244\204\347\220\206/mini_filter_ps.py" "b/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/6.\345\233\276\345\203\217\345\244\204\347\220\206/mini_filter_ps.py" index 77a5817..530555c 100644 --- "a/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/6.\345\233\276\345\203\217\345\244\204\347\220\206/mini_filter_ps.py" +++ "b/data/3.python\351\253\230\351\230\266/4.\347\247\221\345\255\246\350\256\241\347\256\227\345\267\245\345\205\267\345\214\205SciPy/6.\345\233\276\345\203\217\345\244\204\347\220\206/mini_filter_ps.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 迷你滤镜PS # 描述:实现一个包含 “高斯滤镜”/“中值滤波”/“维纳滤波”/“多维均匀过滤器” 的迷你PS软件,支持选择滤镜并将对比照片显示出来 diff --git "a/data/3.python\351\253\230\351\230\266/5.\346\225\260\346\215\256\345\210\206\346\236\220/1.CSV\346\226\207\344\273\266/dict.py" "b/data/3.python\351\253\230\351\230\266/5.\346\225\260\346\215\256\345\210\206\346\236\220/1.CSV\346\226\207\344\273\266/dict.py" index 543fb43..b31ad45 100644 --- "a/data/3.python\351\253\230\351\230\266/5.\346\225\260\346\215\256\345\210\206\346\236\220/1.CSV\346\226\207\344\273\266/dict.py" +++ "b/data/3.python\351\253\230\351\230\266/5.\346\225\260\346\215\256\345\210\206\346\236\220/1.CSV\346\226\207\344\273\266/dict.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 读写csv # 描述:csv 实现一个可追加和查询的 CSVTable diff --git "a/data/3.python\351\253\230\351\230\266/5.\346\225\260\346\215\256\345\210\206\346\236\220/1.CSV\346\226\207\344\273\266/list.py" "b/data/3.python\351\253\230\351\230\266/5.\346\225\260\346\215\256\345\210\206\346\236\220/1.CSV\346\226\207\344\273\266/list.py" index 4ae607b..de382cb 100644 --- "a/data/3.python\351\253\230\351\230\266/5.\346\225\260\346\215\256\345\210\206\346\236\220/1.CSV\346\226\207\344\273\266/list.py" +++ "b/data/3.python\351\253\230\351\230\266/5.\346\225\260\346\215\256\345\210\206\346\236\220/1.CSV\346\226\207\344\273\266/list.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 读写csv # 描述:csv文件读写二维数组 diff --git "a/data/3.python\351\253\230\351\230\266/5.\346\225\260\346\215\256\345\210\206\346\236\220/1.CSV\346\226\207\344\273\266/panda.py" "b/data/3.python\351\253\230\351\230\266/5.\346\225\260\346\215\256\345\210\206\346\236\220/1.CSV\346\226\207\344\273\266/panda.py" index 4a9e4bd..8178fbb 100644 --- "a/data/3.python\351\253\230\351\230\266/5.\346\225\260\346\215\256\345\210\206\346\236\220/1.CSV\346\226\207\344\273\266/panda.py" +++ "b/data/3.python\351\253\230\351\230\266/5.\346\225\260\346\215\256\345\210\206\346\236\220/1.CSV\346\226\207\344\273\266/panda.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 读写csv # 描述:通过 panda 读写 CSV diff --git "a/data/3.python\351\253\230\351\230\266/5.\346\225\260\346\215\256\345\210\206\346\236\220/2.Excel\346\226\207\344\273\266/easy_excel.py" "b/data/3.python\351\253\230\351\230\266/5.\346\225\260\346\215\256\345\210\206\346\236\220/2.Excel\346\226\207\344\273\266/easy_excel.py" index 271cb76..4c4738a 100644 --- "a/data/3.python\351\253\230\351\230\266/5.\346\225\260\346\215\256\345\210\206\346\236\220/2.Excel\346\226\207\344\273\266/easy_excel.py" +++ "b/data/3.python\351\253\230\351\230\266/5.\346\225\260\346\215\256\345\210\206\346\236\220/2.Excel\346\226\207\344\273\266/easy_excel.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 读写Excel # 描述:读写 Excel diff --git "a/data/3.python\351\253\230\351\230\266/5.\346\225\260\346\215\256\345\210\206\346\236\220/3.\346\227\266\351\227\264\345\272\217\345\210\227/arma.py" "b/data/3.python\351\253\230\351\230\266/5.\346\225\260\346\215\256\345\210\206\346\236\220/3.\346\227\266\351\227\264\345\272\217\345\210\227/arma.py" index 186127c..7995a7e 100644 --- "a/data/3.python\351\253\230\351\230\266/5.\346\225\260\346\215\256\345\210\206\346\236\220/3.\346\227\266\351\227\264\345\272\217\345\210\227/arma.py" +++ "b/data/3.python\351\253\230\351\230\266/5.\346\225\260\346\215\256\345\210\206\346\236\220/3.\346\227\266\351\227\264\345\272\217\345\210\227/arma.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 时间序列分析 # 描述:ARMA模型 @@ -8,6 +8,7 @@ import matplotlib.pyplot as plt from statsmodels.graphics.tsaplots import plot_acf from statsmodels.tsa.arima_process import ArmaProcess + def test(): # build a list MA parameters ma = [0.8 ** i for i in range(30)] @@ -21,5 +22,6 @@ def test(): plot_acf(simulated_data, lags=30) plt.savefig('/tmp/arma_acf.png') + if __name__ == '__main__': - test() \ No newline at end of file + test() diff --git "a/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/1.\346\234\272\345\231\250\345\255\246\344\271\240\345\267\245\345\205\267\345\214\205Scikit-learn/linear.py" "b/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/1.\346\234\272\345\231\250\345\255\246\344\271\240\345\267\245\345\205\267\345\214\205Scikit-learn/linear.py" index 657635f..56e89ba 100644 --- "a/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/1.\346\234\272\345\231\250\345\255\246\344\271\240\345\267\245\345\205\267\345\214\205Scikit-learn/linear.py" +++ "b/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/1.\346\234\272\345\231\250\345\255\246\344\271\240\345\267\245\345\205\267\345\214\205Scikit-learn/linear.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:SK-Learn 线性回归 # 描述:训练预测的基本套路 @@ -7,6 +7,7 @@ import numpy as np from sklearn.linear_model import LinearRegression + def test(): X = np.array([[1, 1], [1, 2], [2, 2], [2, 3]]) y = np.dot(X, np.array([1, 2])) + 3 @@ -15,5 +16,6 @@ def test(): y_predict = reg.predict(np.array([[3, 5]])) print(y_predict) + if __name__ == '__main__': - test() \ No newline at end of file + test() diff --git "a/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/2.\346\267\261\345\272\246\345\255\246\344\271\240/tensor.py" "b/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/2.\346\267\261\345\272\246\345\255\246\344\271\240/tensor.py" index 3f105c1..36fc498 100644 --- "a/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/2.\346\267\261\345\272\246\345\255\246\344\271\240/tensor.py" +++ "b/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/2.\346\267\261\345\272\246\345\255\246\344\271\240/tensor.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:深度学习|mnist 数据集例子 # 描述:使用 tensorflow.keras 接口,组装神经网络层次,训练并预测 diff --git "a/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/3.\350\256\241\347\256\227\346\234\272\350\247\206\350\247\211/cv.py" "b/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/3.\350\256\241\347\256\227\346\234\272\350\247\206\350\247\211/cv.py" index 59b0ceb..cc95089 100644 --- "a/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/3.\350\256\241\347\256\227\346\234\272\350\247\206\350\247\211/cv.py" +++ "b/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/3.\350\256\241\347\256\227\346\234\272\350\247\206\350\247\211/cv.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:滤镜2 # 描述:迷你滤镜 PS 版本2 diff --git "a/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/4.\350\207\252\347\204\266\350\257\255\350\250\200\345\244\204\347\220\206/tfidf.py" "b/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/4.\350\207\252\347\204\266\350\257\255\350\250\200\345\244\204\347\220\206/tfidf.py" index e9585e6..655b23f 100644 --- "a/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/4.\350\207\252\347\204\266\350\257\255\350\250\200\345\244\204\347\220\206/tfidf.py" +++ "b/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/4.\350\207\252\347\204\266\350\257\255\350\250\200\345\244\204\347\220\206/tfidf.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:相似匹配1 # 描述:简单的 TF-IDF 的相似匹配 diff --git "a/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/4.\350\207\252\347\204\266\350\257\255\350\250\200\345\244\204\347\220\206/word_2_vec.py" "b/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/4.\350\207\252\347\204\266\350\257\255\350\250\200\345\244\204\347\220\206/word_2_vec.py" index 9bfa41a..3e02c6b 100644 --- "a/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/4.\350\207\252\347\204\266\350\257\255\350\250\200\345\244\204\347\220\206/word_2_vec.py" +++ "b/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/4.\350\207\252\347\204\266\350\257\255\350\250\200\345\244\204\347\220\206/word_2_vec.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:相似匹配2 # 描述:Word2Vec 词向量化,查询相近词 diff --git "a/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/5.\345\237\272\344\272\216Python\347\232\204\347\233\221\347\235\243\345\255\246\344\271\240/kmeans.py" "b/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/5.\345\237\272\344\272\216Python\347\232\204\347\233\221\347\235\243\345\255\246\344\271\240/kmeans.py" index e188c86..af6c2a3 100644 --- "a/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/5.\345\237\272\344\272\216Python\347\232\204\347\233\221\347\235\243\345\255\246\344\271\240/kmeans.py" +++ "b/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/5.\345\237\272\344\272\216Python\347\232\204\347\233\221\347\235\243\345\255\246\344\271\240/kmeans.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:SK-Learn HelloWorld # 描述:使用 TF-IDF+Kmeans 对文本聚类 diff --git "a/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/5.\345\237\272\344\272\216Python\347\232\204\347\233\221\347\235\243\345\255\246\344\271\240/linear_egression_by_np.py" "b/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/5.\345\237\272\344\272\216Python\347\232\204\347\233\221\347\235\243\345\255\246\344\271\240/linear_egression_by_np.py" index bcf6024..6d263f1 100644 --- "a/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/5.\345\237\272\344\272\216Python\347\232\204\347\233\221\347\235\243\345\255\246\344\271\240/linear_egression_by_np.py" +++ "b/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/5.\345\237\272\344\272\216Python\347\232\204\347\233\221\347\235\243\345\255\246\344\271\240/linear_egression_by_np.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:线性回归 # 描述:使用 numpy 手工实现线性回归,迷你数据集、迷你模型,同时考虑工程细节 diff --git "a/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/6.\346\227\240\347\233\221\347\235\243\345\255\246\344\271\240\342\200\224\350\201\232\347\261\273/knn.py" "b/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/6.\346\227\240\347\233\221\347\235\243\345\255\246\344\271\240\342\200\224\350\201\232\347\261\273/knn.py" index 0db96e7..ca71628 100644 --- "a/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/6.\346\227\240\347\233\221\347\235\243\345\255\246\344\271\240\342\200\224\350\201\232\347\261\273/knn.py" +++ "b/data/3.python\351\253\230\351\230\266/6.\344\272\272\345\267\245\346\231\272\350\203\275/6.\346\227\240\347\233\221\347\235\243\345\255\246\344\271\240\342\200\224\350\201\232\347\261\273/knn.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙,VegetableBirdNLPer +# 作者:huanhuilong,qq_44193969 # 标题:无监督聚类 # 描述:KNN 聚类,近朱者赤,近墨者黑 @@ -7,6 +7,7 @@ import numpy as np import matplotlib.pyplot as plt from sklearn.neighbors import KNeighborsClassifier + def generate_data(class1_num, class2_num): np.random.seed(2021) data_size_1 = class1_num @@ -21,7 +22,7 @@ def generate_data(class1_num, class2_num): x1 = np.concatenate((x1_1, x1_2), axis=0) x2 = np.concatenate((x2_1, x2_2), axis=0) - x = np.hstack((x1.reshape(-1,1), x2.reshape(-1,1))) + x = np.hstack((x1.reshape(-1, 1), x2.reshape(-1, 1))) y = np.concatenate((y_1, y_2), axis=0) data_size_all = data_size_1+data_size_2 @@ -36,14 +37,15 @@ def generate_data(class1_num, class2_num): y_test = y[split_index:] return x_train, y_train, x_test, y_test + def show_data(x_train, y_train, x_test, y_test): - plt.scatter(x_train[:,0], x_train[:,1], c=y_train, marker='.') + plt.scatter(x_train[:, 0], x_train[:, 1], c=y_train, marker='.') plt.show() - plt.scatter(x_test[:,0], x_test[:,1], c=y_test, marker='.') + plt.scatter(x_test[:, 0], x_test[:, 1], c=y_test, marker='.') plt.show() -def train_and_predict(is_show = False): +def train_and_predict(is_show=False): x_train, y_train, x_test, y_test = generate_data(300, 500) if is_show: show_data(x_train, y_train, x_test, y_test) @@ -51,11 +53,12 @@ def train_and_predict(is_show = False): neigh.fit(x_train, y_train) acc_count = 0 for idx, x_test_ in enumerate(x_test): - res = neigh.predict(x_test_.reshape(1,-1)) + res = neigh.predict(x_test_.reshape(1, -1)) if res[0] == y_test[idx]: acc_count += 1 acc = acc_count / len(x_test) print('准确率为: {}'.format(acc)) + if __name__ == '__main__': train_and_predict() diff --git "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/decorator.py" "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/decorator.py" index 3127f00..6572eb1 100644 --- "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/decorator.py" +++ "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/decorator.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:函数式编程 # 描述:高阶函数, 使用 Python 装饰器,实现自动日志记录 diff --git "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/filter.py" "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/filter.py" index 29ff66f..5f050af 100644 --- "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/filter.py" +++ "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/filter.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:函数式编程 # 描述:高阶函数, filter 过滤偶数 @@ -8,5 +8,6 @@ def test(): for v in filter(lambda v: v % 2 == 0, list): print(v) + if __name__ == '__main__': - test() \ No newline at end of file + test() diff --git "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/map.py" "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/map.py" index 5949760..97dcaa7 100644 --- "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/map.py" +++ "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/map.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:函数式编程 # 描述:高阶函数, map 求平方 @@ -7,6 +7,7 @@ def test(): list = [1, 2, 3, 4, 5, 6] for v in map(lambda v: v*v, list): print(v) - + + if __name__ == '__main__': - test() \ No newline at end of file + test() diff --git "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/reduce.py" "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/reduce.py" index c017584..233d72d 100644 --- "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/reduce.py" +++ "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/reduce.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:函数式编程 # 描述:高阶函数, reduce 求和,求连乘,手工实现一个正确的 reduce @@ -12,6 +12,7 @@ def my_reduce(accumulate, list, init): total = accumulate(total, e) return total + if __name__ == '__main__': list = [1, 2, 3, 4, 5, 6] diff --git "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/route.py" "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/route.py" index a5c1148..d128d89 100644 --- "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/route.py" +++ "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/route.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:函数式编程 # 描述:实现一个路由器,路由器在路由到的节点上执行命令 # 依次输入: diff --git "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/zip.py" "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/zip.py" index fe2848b..380e594 100644 --- "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/zip.py" +++ "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/1.\345\207\275\346\225\260/zip.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:函数式编程 # 描述:高阶函数, 两个数组分别全排列后再配对, # 例如: @@ -21,6 +21,7 @@ def permutation(s, nums, p, q): permutation(s, nums, p+1, q) nums[i], nums[p] = nums[p], nums[i] + if __name__ == '__main__': all_a = [] permutation(all_a, a, 0, len(a)) @@ -28,6 +29,5 @@ if __name__ == '__main__': all_b = [] permutation(all_b, b, 0, len(b)) - z = list(zip(all_a, all_b)) print(z) diff --git "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/2.\347\261\273/singleton.py" "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/2.\347\261\273/singleton.py" index b990734..9b153b8 100644 --- "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/2.\347\261\273/singleton.py" +++ "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/2.\347\261\273/singleton.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:设计模式 # 描述:单例模式,输出一次“创建”,三次“返回” diff --git "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/async.py" "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/async.py" index 52aa70e..e16335f 100644 --- "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/async.py" +++ "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/async.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 协程 # 描述:async 和 await 语法基本用法,下载图片 diff --git "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/counter.py" "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/counter.py" index 9f9ae1f..26b5b1d 100644 --- "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/counter.py" +++ "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/counter.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 计数器(1) # 描述:非线程安全计数器 diff --git "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/image_download.py" "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/image_download.py" index 3e34b42..16d4c28 100644 --- "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/image_download.py" +++ "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/image_download.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 图片下载 # 描述:下载图片函数,图片url通过hash转成合适的文件名 diff --git "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/lock_counter.py" "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/lock_counter.py" index ef49e1c..ddc9690 100644 --- "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/lock_counter.py" +++ "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/lock_counter.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 计数器(2) # 描述:线程安全计数器 diff --git "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/multi_process.py" "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/multi_process.py" index eef77cf..28994b9 100644 --- "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/multi_process.py" +++ "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/multi_process.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 多进程 # 描述:多进程分别计算阶乘 diff --git "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/producer_consumer.py" "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/producer_consumer.py" index a91466e..b4ba672 100644 --- "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/producer_consumer.py" +++ "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/producer_consumer.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 生产者消费者 # 描述:实用生产者消费者例子,使用 post 接口投递下载每个图片,下载完退出程序 diff --git "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/thread_executor.py" "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/thread_executor.py" index 225addc..caaabc3 100644 --- "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/thread_executor.py" +++ "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/thread_executor.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 线程池 # 描述:使用线程池并发下载图片 diff --git "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/thread_free.py" "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/thread_free.py" index 0393346..f92d796 100644 --- "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/thread_free.py" +++ "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/3.\347\272\277\347\250\213\350\277\233\347\250\213\345\222\214\345\215\217\347\250\213/thread_free.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 多线程 # 描述:多线程打印 n diff --git "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/4.\347\273\223\346\236\204\345\214\226\346\250\241\345\274\217\345\214\271\351\205\215/match_01.py" "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/4.\347\273\223\346\236\204\345\214\226\346\250\241\345\274\217\345\214\271\351\205\215/match_01.py" index de44824..1509e05 100644 --- "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/4.\347\273\223\346\236\204\345\214\226\346\250\241\345\274\217\345\214\271\351\205\215/match_01.py" +++ "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/4.\347\273\223\346\236\204\345\214\226\346\250\241\345\274\217\345\214\271\351\205\215/match_01.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 结构化模式匹配(1) # 描述:Python 3.10 引入了结构化模式匹配。请使用 Python 3.10+ 版本测试本代码。 diff --git "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/4.\347\273\223\346\236\204\345\214\226\346\250\241\345\274\217\345\214\271\351\205\215/match_02.py" "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/4.\347\273\223\346\236\204\345\214\226\346\250\241\345\274\217\345\214\271\351\205\215/match_02.py" index 06992e7..5acf75f 100644 --- "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/4.\347\273\223\346\236\204\345\214\226\346\250\241\345\274\217\345\214\271\351\205\215/match_02.py" +++ "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/4.\347\273\223\346\236\204\345\214\226\346\250\241\345\274\217\345\214\271\351\205\215/match_02.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 结构化模式匹配(2) # 描述:结构化模式匹配支持对各种Python数据类型进行匹配。请使用 Python 3.10+ 版本测试本代码。 diff --git "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/5.\346\216\242\347\264\242 Python code object/code_obj.py" "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/5.\346\216\242\347\264\242 Python code object/code_obj.py" index 1553ee4..0c61f1c 100644 --- "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/5.\346\216\242\347\264\242 Python code object/code_obj.py" +++ "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/5.\346\216\242\347\264\242 Python code object/code_obj.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python code object # 描述:动态编译 Python 字符串代码,并执行,输出两次 Hello,world! diff --git "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/5.\346\216\242\347\264\242 Python code object/disa.py" "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/5.\346\216\242\347\264\242 Python code object/disa.py" index 55454c2..cdff8d2 100644 --- "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/5.\346\216\242\347\264\242 Python code object/disa.py" +++ "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/5.\346\216\242\347\264\242 Python code object/disa.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python 汇编 # 描述:输出 Python 代码的汇编,找到含有"Hello,world!"的指令 diff --git "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/5.\346\216\242\347\264\242 Python code object/func_code.py" "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/5.\346\216\242\347\264\242 Python code object/func_code.py" index 01d2b39..919fb69 100644 --- "a/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/5.\346\216\242\347\264\242 Python code object/func_code.py" +++ "b/data/3.python\351\253\230\351\230\266/7.\351\253\230\347\272\247\346\225\231\347\250\213/5.\346\216\242\347\264\242 Python code object/func_code.py" @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# 作者:幻灰龙 +# 作者:huanhuilong # 标题:Python func code # 描述:获取函数的 code object,从而获得函数参数的名字元素,打印出 "Hello,world!" -- GitLab