With my own experience, I'd like to talk about the process of learning Python and recommend books for learning python

hsm_ computer 2021-01-22 13:05:30
experience talk process learning python


    Because it takes , So I'm probably 19 year 5 Start to learn... In June python, I've probably learned 1 After a month , I can do the work of the company , And this python The project also includes machine learning and other elements , Probably 3 After a month , I also undertook the task of developing machine learning data analysis in the project . So I feel , although python There are reptiles in it 、 Hot elements like machine learning and data analysis , but python It's not hard to learn , And if it's done right , The level of learning competent projects is also very fast . In this article , Just tell me how to learn Python The process of , Show you how to learn effectively python.

1  Build development environment

    Because I have to learn java The basis of , So I know that the first step is to build a development environment , I was using eclipse+Python Interpreter +pydev Plug in environment , I was still using 3.4 Interpreter , Now, of course, the interpreter seems to arrive at 3.9 了 , I also use Pycharm Integrated development environment .

    If you want to learn now python, The following steps are recommended to build the environment .

    1.  Download it on the official website python Interpreter , And install

    This is the official website ,https://www.python.org/downloads/windows/, Here you can choose the latest version , And according to the operating system of your machine , download windows or linux or mac Version of , I downloaded it windows edition . After downloading, press the prompt to complete the installation .

    python It's interpreted language , So after downloading and installing the interpreter , You can run it locally python The language .

     2.  install pycharm Integrated development environment

    Install well python After the interpreter , In theory, you can use the command line , Develop and run python Procedure . But it's inconvenient , So I suggest that we go to https://www.jetbrains.com/pycharm/download/ This website to download and install pycharm Integrated development environment .

     3.  Install third party package

      When the installation is good python After interpreter , The interpreter comes with some basic dependency packages , But if you want to develop machine learning or data analysis programs , You need to install a third-party package , For example, as mentioned later numpy etc. .

      The way I install third-party packages is , In the command window , adopt cd Wait for the order , Enter into Python The path where the interpreter is located , such as C:\Users\think\AppData\Local\Programs\Python\Python37, In this path , Enter again Scripts route , find pip3 command , Subsequently passed pip3 install The way the package name is , Install third party package , For example, to install numpy package , The corresponding order is pip3 install numpy.

    So far, the development environment has been set up .

2  The pitfalls in building a development environment

    I've come across two pitfalls in building a development environment , The first is to change the source , The second is in pycharm Find the corresponding interpreter in .

    What's a change of source ?

    In use pip3 install numpy Wait for the command to install the third-party library , The default seems to be to download from foreign websites , In this way, if you encounter a big bag , And when the network is bad , It's going to be difficult to download , So you can use the following -i Parameters , Specify the source to download the third party report .

    pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple virtualen

    here -i After the parameter https://pypi.tuna.tsinghua.edu.cn/simple It's Tsinghua source , and virtualen The third party package to be downloaded , So that you can download and install third-party packages in a faster way .

     stay pycharm The interpreter is defined in

    I've been working on this for a long time , Later, I took my classmates to the training class python when , I find that beginners often make mistakes here .

    We know ,pycharm Will bring it python Interpreter .

    But this version of the interpreter may not be what we expected , So we're going to install other interpreters . That's the problem , The installed third-party package follows the interpreter .

    Let's say we have pycharm Self contained 3.8 There are several third-party packages installed in the interpreter , But if you switch to your own 3.9python In the interpreter , These third-party packages will all change .

    For example, when we switch the interpreter , Found that the third party package has changed .

    So when installing third-party packages , You have to pay attention to , To select the interpreter , such as 3.9 In the directory of this interpreter , Run the pip3 command , This allows you to install packages for specific interpreters . 

3  Get familiar with grammar by typing code

    Python The introductory books are almost the same , I was using this . There are not many introductory books , Run through the grammar code in a book .

 

    Python The basic grammar of English includes : Branch loop , aggregate ( Lists, dictionaries, tuples, etc ), object-oriented ( Classes and inheritance, etc ), File read and write and exception handling , These grammar points , Run through , You can basically understand , At the beginning of learning , Don't go into it too much .

    If you think your programming foundation is average , You can find another book , Like this one . But you don't have to look at the basic grammar , Running two books of code is enough . because Python The focus of the project is data analysis 、 Crawlers and machine learning and so on .

4  Learn data analysis three swordsman components

    My project is to use Python Quantitative analysis of stocks , But I observed , No use Python What kind of application to do , Data analysis three swordsmen , such as Numpy,Pandas and Matplotlib These three libraries , Generally, we have to master .

    I was reading this , It contains the grammar and application of the three swordsmen , I usually read a book , And then run it according to the code inside , Data analysis , It should be able to work as well .

   

5  Study Scrapy The crawler frame

    My project doesn't include crawlers , But then I took a private job , Recording for a school python Crawler video . So I used 2 weeks , Bought the book , I ran according to the cases in it , You know Scrapy Details of the reptile .

    learn Scrapy The main points of the framework are as follows .

  •     Scrapy Third party is more difficult to build , You need to pack other bags in advance , It is suggested to use python3.8 and 3.9 Based on the interpreter , Set up the environment .
  •     It is recommended to download the package locally , Install it locally .

    But if you do build it Scrapy The environment , Do as the book says , Basically, there won't be any big problems .

6  Case based machine learning sklearn library

    Machine learning , I was reading this book , There's machine learning , It's also useful sklearn We do linear regression and SVM Analysis of the case .

    My experience is : Although the algorithm of machine learning is more complex , But it's basically encapsulated in sklearn It's in the library , in other words , stay python All you need to do is call the method , Pass in the correct parameters , The machine learning algorithm can be used in the project .

 

7  Learn from stock quantification cases python Data analysis

    In previous books , There are more comprehensive cases of integrating machine learning and data analysis , It can also be used synthetically numpy+pandas+matplotlib+sklearn library , But my project is about financial quantification , So I bought this book again , Integrate learning data analysis with quantitative cases .

8  inductive : I learned python My experience

    I feel like I'm learning python Our efficiency is still high , Here is to summarize my learning experience .

  •     Learning must have a purpose , For example, use python Looking for a job , It's going to be used in the project python, Or use python To pick up private work , If you don't have a purpose, don't learn .
  •     Video learning is not recommended at the beginning , It's about buying books and learning , Because the knowledge points in the book are more systematic , And the code in the book makes sure it works .
  •     Don't just read , Be sure to run the code while mastering the skills . 

    In the same way , You will be familiar with in a month python.

9  summary : I learned python Cost and benefit of

    The cost of money

    I used to buy books about 400 element

    Time cost

    A month's evenings and weekends , The others run without doing anything python, You can get familiar with python grammar + Data analysis , Plus a month , I am familiar with machine learning grammar .

    earnings :

    I can do projects at work , Earn a salary .

    Two books came out later , The remuneration is about 2 ten thousand 5 about

    I can give lectures , This piece of money is OK .

    Made a python Reptile private work , Earned 1 More than ten thousand .

    But I feel , because python Including hot topics such as deep learning , So programmers should really find a goal first , Like job hopping , And then learn python. According to the process I give in this article , You should also be able to learn how to work quickly . 

    

    Please pay attention to my official account : Progress together , Make money together , In the official account , There will be many wonderful articles .

版权声明
本文为[hsm_ computer]所创,转载请带上原文链接,感谢
https://pythonmana.com/2021/01/20210122130501581i.html

  1. 前后端分离有什么了不起,手把手教你用Python爬下来!
  2. 在 Azure 上执行一些简单的 python 工作
  3. 推荐 :利用Python的混合集成机器学习(附链接)
  4. Cunning or orthodox Kung Fu? The most complete usage of Python derivation
  5. It's estimated that 80% of pandas people have to hang up!
  6. What's so great about the separation of front and rear ends? Hand in hand teach you to climb down with Python!
  7. Doing some simple Python work on azure
  8. Recommendation: hybrid integrated machine learning using python (link attached)
  9. Learning PPO algorithm programming from scratch (Python version)
  10. Python OpenCV 图片模糊操作 blur 与 medianBlur
  11. Python OpenCV image blur operation blur and mediablur
  12. 成功解决cv2.error: OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:182: err
  13. Cv2.error solved successfully: opencv (4.1.2) C:: (projects / opencv Python / opencv modules / imgproc / SRC)\ color.cpp:182 : err
  14. Python 中使用 virtualenv 管理虚拟环境
  15. Using virtualenv to manage virtual environment in Python
  16. 如何使用Python执行系统命令?Python学习教程!
  17. How to use Python to execute system commands? Python tutorial!
  18. 快速掌握Python中的循环技术
  19. Quickly grasp the loop technology in Python
  20. Python主流Web框架之Tornado
  21. appium+python自动化63-使用Uiautomator2报错问题解决
  22. Tornado: the mainstream Python Web Framework
  23. Appium + Python automation 63 - using uiautomator2 to solve the problem of error reporting
  24. 爬虫+django,打造个性化API接口
  25. Crawler + Django to create personalized API interface
  26. 爬虫+django,打造个性化API接口
  27. Crawler + Django to create personalized API interface
  28. C、C++、Java、PHP、Python主要应用在哪里方面?
  29. C. Where are the main applications of C + +, Java, PHP and python?
  30. Python 无限级分类树状结构生成算法 「实用代码」
  31. Python infinite classification tree structure generation algorithm "practical code"
  32. 【Azure 存储服务】Python模块(azure.cosmosdb.table)直接对表存储(Storage Account Table)做操作示例
  33. [azure storage service] Python module( azure.cosmosdb.table )Direct operation example of storage account table
  34. 【Azure 存储服务】Python模块(azure.cosmosdb.table)直接对表存储(Storage Account Table)做操作示例
  35. [azure storage service] Python module( azure.cosmosdb.table )Direct operation example of storage account table
  36. openpose c++ 配置教程 + python api
  37. Openpose C + + configuration tutorial + Python API
  38. PYTHON爬虫实战_垃圾佬闲鱼爬虫转转爬虫数据整合自用二手急速响应捡垃圾平台_3(附源码持续更新)
  39. 使用python javaSerializationTools模块拼接生成 8u20 Gadget
  40. 萌新入门之python基础语法
  41. python中hmac模块的使用
  42. Python crawler_ Garbage man idle fish crawler turn crawler data integration self use second hand rapid response garbage collection platform_ 3 (with continuous source update)
  43. Using Python javaserialization tools module to generate 8u20 gadget
  44. The basic syntax of Python
  45. The use of HMAC module in Python
  46. 攻防世界web进阶区Web_python_block_chain详解
  47. Attack and defense world web advanced zone Web_ python_ block_ Details of chain
  48. pandas DataFrame的新增行列,修改、删除、筛选、判断元素以及转置操作
  49. Add rows and columns, modify, delete, filter, judge elements and transpose operations in pandas dataframe
  50. pandas DataFrame的新增行列,修改、删除、筛选、判断元素以及转置操作
  51. Add rows and columns, modify, delete, filter, judge elements and transpose operations in pandas dataframe
  52. 虚言妙诀终虚见,面试躬行是致知,Python技术面试策略与技巧实战记录
  53. The interview practice is knowledge, python technology interview strategy and skills of the actual record
  54. 用tqdm和rich为固定路径和目标的python算法代码实现进度条
  55. Using tqdm and rich as the fixed path and target of Python algorithm code to realize the progress bar
  56. 我来记笔记啦-Django开发流程与配置
  57. Let me take notes - Django development process and configuration
  58. python数据类型的强制转换
  59. Django报错:'Key 'id' not found in 'xxx'. Choices are: xxx'
  60. Python400集大型视频,从正确的方向出发学习,全套完整送给大家