入门必备!7个Github上的Python练手项目,Star过万,推荐收藏

刚入门Python的朋友,想知道自己学的怎么样,但无从入手,怎么办?

推荐试试下面这7个Github上的python入门项目或教程,可以帮助你更有效的学习和掌握python。

全文干货,建议收藏。

1. Python

  • url: https://github.com/TheAlgorithms/Python
  • star: 148000
  • fork: 38000
  • watch: 5900

用 Python 实现所有算法。该项目是用 Python 语言实现各种算法的集合,主要用于教育和学习。包括搜索、排序、数据结构、机器学习、密码、神经网络等方面。


2. Python-100-Days

  • url: https://github.com/jackfrued/Python-100-Days
  • star: 127000
  • fork: 47000
  • watch: 6200

《Python100天从新手到大师》的电子书,作为Python的入门学习资料,学习难度较低。新手也能较快上手学习。


3. learn-python

  • url: https://github.com/trekhleb/learn-python
  • star: 13000
  • fork: 2200
  • watch: 724

本免费教程是一份以代码和注释作讲解的Python学习资料。Python所有语法和知识点,都采用了实战代码为例进行讲解,配合注释和参考资料服用,让你快速上手掌握Python基础知识。

此项目既是新手学习Python的资料教程,也是未来回顾知识点时的速查表。

"""WHILE statement
@see: https://docs.python.org/3/tutorial/controlflow.html
@see: https://docs.python.org/3/reference/compound_stmts.html#the-while-statement
The while loop executes as long as the condition remains true. In Python, like in C, any
non-zero integer value is true; zero is false. The condition may also be a string or list
value, in fact any sequence; anything with a non-zero length is true, empty sequences are
false.
The test used in the example is a simple comparison. The standard comparison operators are
written the same as in C: < (less than), > (greater than), == (equal to), <= (less than or
equal to), >= (greater than or equal to) and != (not equal to).
"""

def test_while_statement():
    """WHILE statement"""

    # Let's raise the number to certain power using while loop.
    number = 2
    power = 5

    result = 1

    while power > 0:
        result *= number
        power -= 1

    # 2^5 = 32
    assert result == 32

4. MLAlgorithms

  • url: https://github.com/rushter/MLAlgorithms
  • star: 9000
  • fork: 1600
  • watch: 414

常见的机器学习算法,Python 实现:

  • Deep learning (MLP, CNN, RNN, LSTM)
  • Linear regression, logistic regression
  • Random Forests
  • Support vector machine (SVM) with kernels (Linear, Poly, RBF)
  • K-Means
  • 等等

5. practical-python

  • url: https://github.com/dabeaz-course/practical-python
  • star: 8000
  • fork: 4800
  • watch: 344

作者David Beazley是《Python Cookbook 第三版》、《Python 参考手册》的作者。该开源项目是Python的免费入门级教程,教程经过教学实践,包含课后练习。

教程目录如下:


6. python-small-examples

  • url: https://github.com/jackzhenguo/python-small-examples
  • star: 7200
  • fork: 1700
  • watch: 284

Python 有趣实用的代码示例集合。涉及Python的基本操作、函数和模块的常见用法、面向对象、正则、装饰器等知识点。

Python 代码如下:

# pyecharts 绘制水球图示例
from pyecharts import options as opts
from pyecharts.charts import Liquid, Page
from pyecharts.globals import SymbolType

def liquid() -> Liquid:
    c = (
        Liquid()
        .add("lq", [0.67, 0.30, 0.15])
        .set_global_opts(title_opts=opts.TitleOpts(title="Liquid"))
    )
    return c

liquid().render('./img/liquid.html')

7. LearnPython

  • url: https://github.com/xianhu/LearnPython
  • star: 6500
  • fork: 3700
  • watch: 440

这是一个通过写代码的形式,对Python进行学习的编程项目。针对Python的一些语法特性,力求通过代码对知识点进行解释,同时还得到实践锻炼,通过动手实践对知识融会贯通。



上述这7个Github上的项目希望对你有所帮助。

我还分享过其他一些有关Python项目的文章,有兴趣的可以点击下方链接获取:

收藏!GitHub上11个简单、有趣的Python热门项目资源

IT大佬推荐 ! 20个必备的Python库 让你的资源从此用不完 建议收藏

结束语

我是@老K玩代码,专注于编程开发的经验总结和项目分享,对编程有兴趣、正在学习编程的同学可以关注我。


#头条创作挑战赛#

相关文章

python速查手册,200个常见问题快速解决

Python是目前非常受青睐的编程语言,也是一门非常高级的语言,从学习难度上来说,Python要比其他语言更加简单且容易入门,因此现在学习Python的人越来越多了,不妨有很多完全没有基础的计算机小白...

TOML 新手完全指南:Python 开发者的入门手册

一、初识 TOML:为什么选择它?1.1 配置文件的常见难题作为 Python 开发者,您可能遇到过这些情况:在 JSON 中添加注释会报错YAML 的缩进错误导致整个配置失效INI 文件无法表示复杂...

Python 内置函数速查手册(函数大全,带示例)

1. abs()abs() 返回数字的绝对值。>>> abs(-7)输出: 7>>> abs(7)输出:72. all()all() 将容器作为参数。如果 pyth...

《Python知识手册》,高清全彩pdf版开放下载

Python编程还不懂?今天我要把我参与编写的这套《Python知识手册》免费分享出来,看完文末有惊喜哦。文末惊喜,记得看完哦!...

《python背记手册》高清PDF下载(python背诵)

这本《python背记手册》,把所有的基础知识点和语法全部编写进去了,现在我分享出来!文末惊喜,记得看完哦。...