LearnPython
Learn Python in the form of coding, detailed instructions are in the Zhihu column-Learning code, learning knowledge
================================================== =================================================
python_base.py: Getting Started with Python with Thousand Lines of Code
python_visual.py: Getting started with Matplotlib with 15 pictures
python_visual_animation.py: Example of using Matplotlib to draw dynamic graphs
python_spider.py: A very "watery" Python crawler entry code file
python_weibo.py: The “most detailed” Python simulation login process to Sina Weibo
python_lda.py: Play something advanced--take you to get started with Topic model LDA (minor improvements + source code attached)
python_sqlalchemy.py: As a Pythoner, I am embarrassed to say hello to my colleagues even if I don’t know SQLAlchemy!
python_oneline.py: A few small examples show you what one line of Python code can do
python_requests.py: Requests code example of the best crawler library in Python
python_functional.py: Python Advanced: Functional Programming Examples (with code)
python_decorator.py: Advanced Python: Detailed explanation of decorators through examples (with code)
python_datetime.py: Do you really understand date and time processing in Python?
python_metaclass.py: Python advanced: understand the metaclass in Python step by step
python_coroutine.py: Python advanced: understand asynchronous IO and coroutine in Python, and apply it in crawlers
python_aiohttp.py: Aiohttp code example of the most useful asynchronous crawler library in Python
python_thread_multiprocess.py: Advanced Python: Talk about IO-intensive tasks, computing-intensive tasks, and multi-threading and multi-processing
python_version36.py: The official version of Python 3.6 is coming. What new features are you looking forward to?
python_magic_methods: Python Advanced: Explain Magic Methods in Python with Examples
python_restful_api.py: Use Python and Flask to quickly develop RESTful APIs
python_restful_api.py: RESTful API advanced: connecting to database, adding parameters, Token authentication, return code description, etc.
python_context.py: With statement and context managerContextManager
python_flask.py: Flask related instructions
MyShow: Have fun - visualize all topic relationships on Zhihu
python_markov_chain.py: Have fun - use Markov model to automatically generate articles
python_wechat.py: Have fun - write your own WeChat assistant
python_csv.py: Simple reading and writing of CSV files in Python
python_numpy.py: Using numpy for matrix operations
python_mail.py: Use Python to automatically send emails, including sending HTML, pictures, attachments, etc.
python_redis.py: Python operates Redis to implement message publishing and subscription
python_schedule.py: Python for scheduling development
python_socket.py: Python socket development example
Plotly directory: Some plotly drawing examples, written using jupyter notebook
================================================== =================================================
You can fork the project and submit a Pull request after modification. We will try our best to merge the code after seeing it.