入门必备!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玩代码,专注于编程开发的经验总结和项目分享,对编程有兴趣、正在学习编程的同学可以关注我。