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 51fc5f933c35c5effa3acc4d3fe79e7d67d39504..5ab2ebc503ac94b7ee000d2c027b5f92a6c7f342 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 7e81a60a4ec47ff1069b8df572417d2585419e61..073fe0c6701e32873be39b120f9fc0f2c57275d9 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 4d317ad39b62239b17a357771f7c96f7717cbbc6..46ded95b13dc92b628fa70cce8753fc0dbeb46ef 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 30cadeaa327966d7e87e3851d64fc376eeddc26f..8ae54e49ad02f80553bb6a56188a589eb844e963 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 5aa0bbaa3aaaaf59eb0ca52d8589f5e85061f372..1252905e5a2447ae6706cebbffb729acf43a5361 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 d7f01225908b61839ed4331be3b9552695f23d9e..d99d2db3d9f49f279ab4e127fd95aa211a680a07 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 f8906d52b21a15f2c3b3bde6d3e1c1a8449e773f..682085cfed221af3eb084a4cb1851f0a853ebe88 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 073161a8abf3a0e0a8b60cbb44c5fa7190d632c5..6b85ad0bffb57ec44f6a4920914a27a00d0523e0 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 9cd2edbfcb7f10e87c131bb8d9033e3f40713d8a..332b02e690929b2ec99f41da81045983a75d8bf4 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 a3e27257cc57d94cee1b4eeafdfe7bcfcff6f5eb..bb9200d51eb0769c19d17eba587a383021fd7ce9 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 2572ea6257f6db88adff1c7ea0d5d09cedf04b81..3157131205474e6ff4135c7fbcb10faf1737cf7f 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 35aef84a96ed4170768481856d054e4affd8f556..971bcff98cf3e98c9dcd53f1d065ec6fed2c7dd1 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 cbdbb5e0b52e1ab5bfcd2edc1318e2a02a102370..7f1a11134d6e6bf2b92b8514f3be4d74b9ce9b59 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 962c171718b2fddff3f85c226bb3748ba9f6187b..8e3ee60183f4b01db879faa723a5038b62b20054 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 216dd7fe4ab4a8406cc57c10e775e00d3a5fc8db..192e6d6bf0e843b32b7de87c324dad6af5ae24a4 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 f586d1a24f0b5531ed04daa02e95a87e6215204c..5c9158e1b9d6096fb5d1190634fcca16d2e9622e 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 85455f98c5c7617816ce3698aa79354c76ff4e19..b9cfc98569869d0c3589e11e7f9e1e3e86a1cc83 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 df949e2ef35f81f179ac56a1662c05dcae1325f4..c6c2cae165a3e8dcfa278cc8b4566399e0bb7317 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 d348cbe1a6b7b9880c7dc1ba033fe80b8ef59aad..fa433fff566b5e2bd036653695123c1f80142dec 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 7168b217d12d5bd6dcf2848acdb351b356163f47..8e88a095b298167e3156998053f16b9313341562 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 17975c502b850a695920fa9bbe78dc034f30355a..40b36a77ba903341757506ea35811600de3f067e 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 02af5f31f9b7b49c4302c913f787594e30c39123..feaabd86d017d8a56cc6360fd9cf8378081fbc2d 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 431ea43cd0282504fdf8fae515219d0680066daf..ba80b998acdd29edb3a749c83c43980d032eb761 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 6e5dd4f514b9b88e76173a4c700c00b4b04f0ee9..6f96948119356b9cea85b7c44a508efe95e6f945 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 18297890987b8accde4d246ebaab890ed33bb14f..6dce5787867a1e97a1bccf438cba3d7d516f288a 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 7f1afc4fd785bfa4f7aff59aa562d06a468f4c2c..c3b75b02ba0791a77a6552778e2ab16792199317 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 2f327ee28c035a3d3622a075baee96254a3ffd43..5a68768da0025cb45fcb8f3a038c4abb621d70ea 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 8106b4edaa42e6da571f2ea69d831e082fed5883..6322fab6303915923373f73489458045a41f5c10 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 aa897a530da2131f23893a35acffeeebc248206b..f1b2890edf095fc03bebb7785bf5b19578a400aa 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 734e96a3655d29357fb982b7408f88cf4b544e8f..66517264713e67754cebfd6a70b4b549eaf18c12 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 5d466fd1f36847619e2303656a4748d7b6b797cb..92d0b4969069c3b97b5c5bc48aaa1b9ddea96f60 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 e37afb7003bc73aa0027cb835a11d28ec7c218a3..1c7dac8680d954c16d4d5c9b33997c0a9967a8c2 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 a0c4190ee305c4288f22ab4fb38cf3a82f45801f..57644d09e509ac2bb3c9095e81ddcebd56952e28 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 1f182c5c41b578dec4c046539cfeb754461d0ea5..27c7acc58eba60a3c1f8302bde314862cf64d691 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 25faa8700222f4185fce225667faaee95e9f560c..497f5e7b088c334051ede33505b914e239859753 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 3c410bfbeb27397e2ff41d75cd7a55b2b5bb6045..5b039e9f583df84bbe561e3a3d2e46178eda5c61 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 54837735db6a23d02a4e171cb88faa19afdf0f59..79692cb9be49d5ba4a14d423ef7283ad5aefb53b 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 26225658ebc8b5c5573fd6289e8e1d42cd421003..e6a42d8ecd897b29613e79514b7cf9d99731b852 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 faac249ccb1a19bb1ccfac624cfcb824bf57ce15..df054bb64b37cc493b0fb91bb56cee1b23d972ea 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 2ec7124e38e601b452fa398e388fd75c4ada5815..7072d95af8ad41e45e2f647054cd142ab206fb48 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 314bb99ebcff05d567ef03f8faf72b9cb0df9947..b48bb65f2c831c1b93207903fa35bf4c2c44f1f5 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 1eaa91e10505b80f985668b986232b7a07a3c8b5..16f7aed7b8bba5a9cecfe88a06f1a1c9e67649b4 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 13c83b8c2e54fbbefba402dd46212e40ed7ee958..366f829dc78f3c97afa5d3aa15ffa34b41fa9134 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 5fb04ed16e16f6192b2a74fdf3e5c2ddd80a7181..0d643ad720e5d19b49c6edeeca69349cf6fe0500 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 3644b9aac93d0ba88f7cc58def2a19bc7ac0d425..97b94cb047c8467550f0ec8b149408ec8472504c 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 b1b9c13e31e19b8b847935509d7b15191cfe74fb..f55fe64a47490c63cadce04ec94b718732f55a74 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 bc9d455c3c9bc3eba0d3d9a7276baf9a998dff47..5bf402ac8b1f83366c2c8217ff01417063d168d6 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 205e3202d2267f532fe58fda5afa3021c903bd7d..9f5c5d60bac2633ca5dad14077d7fdd951f212fe 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 a745f2455b58e2eeb28c912540c71254898d5ba4..f0a09b3549b961dbc35f7e4bfd9b771488b5f7cf 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 ab357fecce778dd2484b3485e768ed8de6284e51..d522830ad2058290715b7978df28203ebb9f0cdc 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 b99120453b0f98c1cb9a446943cfaa58b2bba86b..320dd641eae82a1b12e50a2171c35c4f279209f4 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 f023e371673dcd7c06075fa7e51719d77b6b3b5b..1875a928d73aface40d80c417fa086d6826d4faa 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 9c592b4c5f3e2882f4f1fbe6426796b1fa7fcc24..50f44f843cbdc54ccd8d0960ef16041f4989aa4f 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 c91dc967fab1214e100756a1d1b90d6ec581f6ca..19f7aefdb6686c5577bd9b44498663beb58f4598 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 95a8e7e4104d2df499dd009ea535663c061f3ad3..0f8546bf5f7046f59b62a8efc13852fd1f9ceb62 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 df0fb8e5aed03cc91aa9f65505c0fe36a8bd0c96..59059fb74cabc99a7b811ca1aef63838a49bf666 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 7bc23a095b42d62d20dc106ebbacc51eee253cd2..b1f6240c2cb8bb2cd725cf349648dd07bb9baed7 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 b34a558d0986cfb3c671e54877851f134782796e..8d77c43040c00582f2a51b789656520a67ad7488 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 d0d9c8ccdd07a949f6f7e22891d9dfa59cf7d4ba..6b487f8393c48a6982098d48e4e07584136daced 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 9a0e1434cc24a6320f735e2b0b5696568d50e0f6..ad9d6d7fbe4885f4e78382de85314173425854e7 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 ca3898e33a0d3dfd3698a34b485049b5caed8b8b..e3b83a5bf3a952e3483e9be5ab4ae3e233ffb5d4 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 55b303008d7ee3402bb3f513e1f9dea8f5ba706d..a1f8a029abb31d4db3479ea9a22dd965d9ea32b6 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 e209742ca7cd38df4d6f6d0f53cf9f6ca3d88aa0..0f7ce1025ad171a3121a01d71f8c1ec8af8a0025 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 1f667aca9658b98433f5c9d0e216736d4d87b32f..3bb1003ff3bae37d544c63b21c31b06f0a356a7f 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 37b28d021c9f79e9f9b3591da0866e8264ee2d2b..4ca310431746639c4c911f40089d06ac2711cc03 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 6b2a0603f0245032dc447dfb27eb6d3c472c6b5a..195ae070550ce67705c799e710b2bc833b458741 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 c7b476728b2da5a9dc6a65539c85b095ec1d81ab..eb492abfdb5672e4141935e192ee25038e02a1bb 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 c2a2fc548f340b6fa0f6d706eaf459e42188d2d6..f52e9f3bfc62a8004e4fb97a93526e926a6db722 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 4b7da4bf421c426d0e312b726cbcea758d50619a..2857ffe8b009e19ef467bb282506266542a99c59 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 d69311dd3429cf9e273673430226545a96112ee0..246adb59b773ad4348fc9ea6b59bdb99a165e2b5 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 6d6f5e54f7acc5f7e3c0df6a8d0e02521edacd4a..f94f69005c4902b48c9baa5f9b0357a5fe013fd0 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 8c1e9ddcc307d54507d89539e1c499f3159799f6..1d8be3f52508f43ea733217ac2ae3218e29f32b2 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 10d3fec2fcb3e1fe9a472ee7db8d9fa2e94271fd..3dc4604f7e86eb280ad5b6cc55e73adc84b395a3 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 f6f234975145162295c87194695d962037d5f11e..48f95a8bcd8fa00812a66304f30c6d553ff35926 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 e801e3f8f9f64637c821485105369d33a4c8ed19..d2bac166ca918d3f9f577b67d4f2526b699c49df 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 715952e3c0137c5b9801d7931e0e9c268ccce5fa..4efe7fb328819869bf3afc4d1b9a2c12442ed520 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 fa37f094975adb5ccf6b9c0eccdb0973f7589e86..7e7b1e612dbae27537037b4cc81e7c9abae6a023 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 d86bd79cbf6f93d927f6f1137ad288a3b8f60c18..9622da4c44871e6ee3e50ee8a73d3c34d68f10ec 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 49ad9a07184ac394b552e0780f1144a57a9640cf..6c45338ae319ac825f9f72549bfbd87ef2a12bbf 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 969470ee6e47021e520a84da7ca046af92e25b3d..dc5b6083f1bf4da01b01f627ea4c80a1ef7398a0 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 57667c8631c686ca9864836426bd7221036e474f..1fa66646094f082cfddd4d44191c691909acf531 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 ccf818ebfe0b3b62faba9cafe448c3571526283d..2c681e9239ea1b06f7272857ee61148151d59d49 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 ec2acd76f18783d56c643ec45e0b573632db473d..8e4e4061c4410272b1f37e834d1773407a0f1dbc 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 3e49814588ed14a8db5ab5de45a8248097c277c9..6a750553aedd3c891bba526bb2ea6443873f21f8 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 5e17afb3b88fc04510ac1cff21548303166ae023..cbc3be0df1636b97c33b5c55aa552943a7f02160 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 ad0945064879fcd02a12795547bdcf39250516de..31d0bb523c79d89082c5e3577a665be68490d7bf 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 9c3c351a2f3b75d93d35b87c7ea50a0c70ef025a..55a361b5e721b3cd9634fb8be5dff915090223ac 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 0b2e4d2e23ab1b92e92033bce5a62f2349bb187d..75c042f7274694496c1b1362650b2bbf858b386c 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 16056562fc0d8d209d003f9acbcb3404568ecc31..ffdac3e51897707357698e2f8ed2c20e355e3e7f 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 6f3c41b0aaa5c83acc5ed1afcc05d083e974121b..b2175bdb2b71de94dc6fae6a88e306edf4981bfb 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 8b0d4fc1d869c7405f3fb8dd05ce35d6c41fb203..cde7605417a2ec1fa16a89d753b7c9eff98d9556 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 ba7b9d163d948bc534d62b21958a2d7c10406589..877554b404b7eaca6cb9d945561e5b9881f03a63 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 0d0ad14158efe7cc56dd56f31fcdb762fdffeda0..b32dd496951b2ac5718844604b2d76639724c016 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 6b830501803ce2e5802745c94f9ad421f913ef54..8707a840a2ce3f4523f7499e07912eed508060ff 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 dddcdae7f450cf17d1df2f316c342422dab957a3..85a421ca9c8add7133507f1a84775e99214e3368 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 6d38e079c82eaeb6efd9d3bf45ef9662c33ffbe5..4d60fa0820566cd52795b00fac600a7c6dd345fd 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 bb341394985c674423d46fe9e11d8bc92b96a9c6..7a7a041765293239c2d3a52ccfa0c164a64f0f02 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 5f6de039393686db616b1655b42ca79412787092..6051441760b9c218313e28ff5349db9d2b41d0eb 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 3f96608a470b668f09bfb87df743e7bbdcca0d22..01b72f5af99e14224c3bc71345c2a81035c200e2 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 7dd3ec278a8ceb07ebf06a6c3b69cd98f6df57cd..ac74242cdc298e7848b530edc3816bb2273cc0b3 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 eb8db33294d6b9a538e33b4dbbddd4ea0c5a33be..97280090782a797c55c016e24652a991446cffdc 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 a1f3e1bc7bfaade90e2014e04ab6976b48fdbfdd..1e37773fa31dc1cc7820287588e77081f9d44957 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 591994abb0445992b2f90357aa4a1dca882eebae..9f54b3f5e68e54fa2ad04f953ea2830f192c156a 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 b48ce762d64703830541c27583d8a72f36000ef5..6eef18027239e8362ec914eb286ecf5348ae6c1d 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 182f16c60ba56ed62c03ee2e6668a074ebfd1c67..e23a93b9c26b429e8fb380760d15f79a9ca45da5 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 c252e9d59b1688700abcdb0f206d8077c342dec5..85a21b41e1a89aabc49bbfc712c63c1053a621c2 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 9def2e99c608e7fb1089a28d6a3a77d58dc0ba8e..b3aae36978004b20be6d2834bd5d7c8dba8e4b5a 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 e2273951906481a8d71363d44815c61ade691559..9d7b4a5965c7ad3011b46418184e13abf4131e26 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 66d7b601b90fd58d8691d8580041c7cdc51435cb..8874fbb3c92fdeeebe8381942fbe2117bf1bfc02 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 6b830501803ce2e5802745c94f9ad421f913ef54..8707a840a2ce3f4523f7499e07912eed508060ff 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 a2436879cc3de1ede7dd523655d766996907d771..958c191890fa4dae2df946ca8fa80ae0d36118ae 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 54016ea7c94df2e0dbce7ac166b91a7eee653327..8335e1e3ddc390a62699517360c2c3405512f1d8 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 6f5a53bf453cf4a98d50452d45a58349927ff038..a13a15f99433e54949f72e025795f080f7cccca4 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 249a556c38d71cdf183dd3c905a4a5751ca22c96..1f0d9f050113cb62ae8b097f9994fb6c3136c925 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 cd516cd18813774b0af4a996eebc2a56618ca8ed..3e6c49c9f671023ca3364bc27b94e1201f9da101 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 d8845b65c8fcef0cce7aeb58989f81bd9cea0872..097bd1dd05fec55805c10f2b33c6b8ec662880cc 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 89169c2400f347caad776508cb9b5cd953f48c68..62c542fe920f03330f4b6994c996f23a1765ba32 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 a011f0bbc45b14422a556cc06c66c48dbbfedaea..200bb0eff04225f62f750efb23769a347bbd15a7 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 65447cd6e8edff1fdfbfcc2a88f4b34e26caab1d..b40b4526e57829dc5ea7d56de7bc5ace6959e717 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 b75c13c28cdea666cd1ddfd9030094c9f805dbdb..a667f281aa2f223a0ee32522bf8eac99e73f3f53 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 40f379a3e5449cfde3abfbfc289c7c2bcf0f23a5..fb4f7f83305c23b73d79f55a47cc6f3c98a0bcc2 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 7350a2eede3155b7a406bc1a7dc0f37c7a35ea24..fbd80744be6b8339dbf7cff586f5ba6917533929 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 72e43feddbf2d8f22667883f54a9a66ff6be7415..c17534d00d7dc97f25c50ca0e5cc01b56b3d0aae 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 fc10dada625e29a4e3bc0c8217423ca2657e0f38..ef6bfb83186a1510e587a916143f29e6f23f8678 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 1b2272602fb6549ecdac9a7ac8fd7daff97097e5..c8751b8154c556890819f33842dd1991a3b77357 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 296b871717475b14d239ab84168179be88e0b400..958053dd197ca9298a935f1d1a794de225ddb872 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 8e21950ec47e4653aa556e5e80ab498b93ec28d7..8a7989bbbc49fa3e327232ec6af9310efac99457 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 aa48c5e2f03ff03d642e7bd5cf99b6f1fe0516cf..5300922ed5625767fa25d266e5d6bf0da697fa50 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 97549464131f9c3b9cafc8e92b8abd405e259ea4..1e2dcb2eb8a3dd384ae304bef0dfa367679130c3 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 c21325e1402e19587bfc8da318a4c0164188b5ae..ab0e0cae624f68df44427392dff79d58979bc62a 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 3fd82095df0e8d05f8682ca777b4d422f2cc2919..e111f80a38f969d4a00205a350e599d867d6f08c 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 4ed2a6f01e02171fac4e799641c355383962a4a1..be9026635a417fdb5688e153e6b78b50e66abc3d 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 8b00d448dcc88736efcfa26b5effc2dd8ce4a237..9d875bb1e0ccc1ed85994a2590da67f759411a31 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 4e95e36d385218c8209e936277b99caada12dad1..bbd014e58b401c5d9065558e303e17013d457934 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 91a6b98b6c261f1dc48cf6b1487a340b42d9e3ad..0d3d6e0cfcb861fe3cd7c7c86c083538ae7d4da9 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 b23b393de6ff10129f71d485d83b4124a586849e..15d530164837f617099e1e96f264c1205fdc0f2b 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 d7815e10e6723164ea8dc0ca0f03186dab0ab4c3..1730b10c7a6f375a7613502d089a15f90466a13c 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 c27e29dba361690f057af2c405d70bd4d81258ae..f44326139fb255f15e845dbeaf374f9487a9d3f5 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 5e7c1568aa3356a37da78599a1a707a00e0c3fb9..b4d9408f1670a0b4821d02a62bf2678c5e27de3f 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 3f02a19497cdd54f80527a7eefd6c84ac243cc43..5eb75901a1d9cca63dcf4728239f60ea12db6854 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 bf2e8533ea154ae482acf88b6692b1dffdbbe664..decb68f8557e124983fbd8b04d19c1829c43f14f 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 8c72e0ab4a1d40b8e1e96fc6abb3894752fd02ec..b79a32a75de1992a128a2073f6cc35772141a6d8 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 64652ff246bd998f0efd31f3079d729a26c52c92..b5468682ed5d995811b84e08c66062c0e797f524 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 5c0cb3114cb1d64f21a483ed51e039dd2dcba66c..912fdb52a1044d27feef07b765824f1e3eb150a6 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 99051f1e9567e7b6d0936f8b9b56b71768288b07..504b85ae1b6573837b296a97b29bee92c71ba5bc 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 1f7ad03939a99c81e506a3f24cfb7065788186da..257e5dc7aba64d0122a6d7f00d112226aadfcab7 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 90f9c40ef2783975718484f7bd21beffeff7b341..7a7cd3c96b2fff26020791732e1b3153ca25c45f 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 acb3dd9711c48a8e5089f0a4b665416708de5fd5..653347441ac2bf6b3a1b99ecd5ad2687761a8c69 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 f80b7f43f691cb8e0e0d4bf24b149b67d6e05352..3b089428385d70182d219a70145476f0f6589fd7 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 16612af50ccb650fe37fb1112cff5d3d589c95a0..7f857081c7ca20bb23694b5f9a4ae497d2c4258d 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 bf1a85c6ca078bd57cd729fc39f95d860c22572b..4d1ad54ca6041f3d6b836db0f40bbf20c98ca402 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 5907e74477d05addb9abbbe377a41c9b4445b0d8..8f58e99482278f6c85f8e057437d72718989d840 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 29fb51994666aa5364511339a35f26ea5fd25351..d8b1a27279e57c01146a83261dac22c3536a7fb7 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 9138e897db5c27550b3d80f1d198e28d0aedec4c..9d2b6b5b0cef48f4fad0b4b8122e67b11465a38b 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 a32687db6fbc07a8294938749998ce2292cc4ee8..acb75c15b127f63f6b63b35c8ea380612ff3e0fb 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 2e2c8996a8f6db6f38def71e4c55d4e81a5b262a..86c65c7ca1e145f7090c13413924231d930d3eb6 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 5aaab0147147c7fddcd17fd6d3b08fea7b19bae6..8e5b5a4533cb6c8e54038dbdd81df3625980884a 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 4a1a2190c62c283a2d183f07a915bc95e28dc518..33e95f62c56beb3eb001c8e246d276a4e97335cc 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 d382d2604a0c0823161d734ddc7bac7d1fc55f25..455f3e8cab72b886aca421a19b9e19cae9316e33 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 7039532c9490d70108ae1e97c5f130afb51f9bc8..f14d4141db7f7fe6074ee49b0daecad1bd59acdf 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 717307fd0882d1ea7495a21effc0588978944885..e9eca8bc244aeeebff207b736fa1ea532bcfbbbd 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 1c21801fc0cc08bb5e3f35d3ac6323c01b7d53c5..305c6982cd5057e970c029049cac6ad343839ad1 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 93b4a1660ea986125e7f93afc49e1229c0d972ef..a0186bf27de643f40b06e11ff64c2f595582ca78 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 e46c12a5f72ef3dcbc319cad8a616d9c14701ad3..fe657c334bd8bacfd2eddafc9f94c9ee0ae27238 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 3bbb188a6820083c0b2d3b769ad3e959dc7fcc2c..f782769b3edcd62f11187ef0eeeef49bbc07d9f3 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 a8c81a90be3cc215bdd4a93e79ab4c549d53a298..4b7a1a218207068ab57a5db1217c8ec826df9f12 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 f8fccb52b29a0b3ef8e1373e0186fb5d6f9af088..763c10922b9700abc2e647d42034b6ac2d4633ed 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 484e5f171d292aff0a207feeb5c9e15d02cb89bd..7f10e08d0ef3c717a240ae2c920c6f0180259983 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 856c0cee1c99661f89e0f9ae2d46df020000f209..2adb4f5b1eaedeceac2c70830925bb993dec57aa 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 87fe3864a91808279118a676fc9389921d191df2..13ab5903532e79b5165f7ab88bb9d27dd626a3a5 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 08a83a222f7507cf9cc26177aea1d160c2d9634c..ee3cc751a8bcc56e7bedd635eaa7dd07309d0953 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 e5b2d83219f9faf2c60d01021da5307bfd619c6d..1552fa28468b13a6ddc669ec4fc5d7b86501f0b6 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 f3e7759607fec6d89e9f4aac487c874e154540b2..898f3f7b89d28cbe81f9796f1f28dfe25ac990dd 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 77a58173d49dd3c0e3240a848ffa755828077414..530555cc2fe74c53b902d8517b6cb00b461bc4fb 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 543fb4347865dc2c28fa724086ced3d8b9d72e88..b31ad45b142a334c84e008f6fc52ec7fc4a347df 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 4ae607bf7e385929217a43a08205cedf11e087a8..de382cb76a95db449766f96fe475406551be925c 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 4a9e4bd9208aceb4e865a7b91a2a3f2090776786..8178fbb440495719d7bffd9f309140c9b9d0981c 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 271cb76b0308dea90e0220fa4209f648b5b1189a..4c4738a559609339dede107e1748086cc061d117 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 186127c6e0611e1ec31ff6b218fbec26da8df467..7995a7edac5ecc6a20c4ddbfd830b75cb66ae33c 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 657635f2af0138b178b2fce6f27f54213d913769..56e89ba2ca559da630a61e4ec1ccbf1a943c6ad7 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 3f105c1d23728d89ee98e14f0cd813279caeae93..36fc4989302b47f6b3c261ff4f22d6364d9b826c 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 59b0cebaa7ce218139e3eddbdd85746a267fb3f8..cc9508993e3145426d7b34ce38342c555a5a331c 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 e9585e6f59b4803c21d7784ea39de97b6e94e43c..655b23fbec0fced9046a4e6c39afefebb39ae334 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 9bfa41af57b709471c5130a0d55d9f4f48edf8fc..3e02c6bf85535ea571a78079670c8879048cc75f 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 e188c86506d209dadd625cd358e8ca525a9bdd7d..af6c2a3a012dbf4f60075300869e4ffc079122a4 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 bcf6024627dea7a47a2a59172c461fa5a48e471c..6d263f1efca26683e6658b201e126cd457cc61a1 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 0db96e7dbfa6b651b3a9f7778acb88dbc76f0f9d..ca7162895ca295f43d88bc6527c8aa32b14dfc52 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 3127f00cc2ab4da0f23ddf5ca398f797a9332b93..6572eb1b2f22bc7608806e8662e354ba657ac909 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 29ff66fb44669127ad70da0505240de4b6b2493d..5f050afcf5edf08ab06bdb956a2233bd426a8d34 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 59497608af1bedbe1fd83fd9540c116a3ff3a014..97dcaa744e3ef5bb906cc03750f85ea9be25c417 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 c01758405875794c713152a0bbb2b1102a6f0c83..233d72d81d249597f5452d294e5418b5795b3411 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 a5c114856cd7462d272970ad5a6d5ddaf12b99c7..d128d893d2388c214543d0305e6a3296685f7a00 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 fe2848b01bd9e20f61d16cdb20d3a222efc25e16..380e5947b069c8d4e8e94e21a9b54f8ae523f098 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 b990734d26638f6614c4b06f9bcd79c5ba4a8e57..9b153b8c55e275f3401d06d33d4f4002379c9cbe 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 52aa70e38e077680eb17a1fcb55b959fdb9868bf..e16335f97724e373a2b8df969209659b9f607106 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 9f9ae1f8e32ebe7e27dac2c67a18e0dae489fc71..26b5b1d89542a2d156a23c5acd4ac2e6d33bc03c 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 3e34b42ad1dd9db38a3379ea62f7a6ae8f67ff88..16d4c288dec93f7ba445fea2998c24317a9328e1 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 ef49e1ca8c87296ffc551237d06361e622bdfec1..ddc9690ac501c14e53228631f95b76cac98f5709 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 eef77cfdc3291aaea367f4fd8669cc35e3b8f8be..28994b90ecc19ed8c081a4eda77deb075cca167f 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 a91466eb54e171e5e9ecafa2767e425d7dce7700..b4ba672b6d2727b7e186e7b56f6eb10e465b48d2 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 225addc3ef61323e3139c8acf5c8aaa399c3115b..caaabc37c2493b47a09ab4792d538944d233fd21 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 039334632d0df14452d837da0e535f8fa5df1109..f92d796b1ba00772fc756f5fea5da6d9c9bade22 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 de448249bb2d21ec455cf815be4d29da6ff1d11d..1509e0537547a5218ab002c7a76d089416179b24 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 06992e7e0fbcdf5bfe5914458d82921e6819c524..5acf75fb664e810bdb60c05b3c45b0eef0f87acf 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 1553ee4a4fdfba9c60fd99e513cb3ec4544de4d6..0c61f1c6fcce8185626b81e10344f61561d31ad3 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 55454c2a172aec5756eab23af0cd901af17c6eaa..cdff8d230a9e36cd089856b446fdcc7453d111aa 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 01d2b39211175ca5f2f42d23aa14c4ffd4d52690..919fb690e45dae333c2b2337acc9f4f63405449f 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!"