Python zero basics tutorial (01)

Autumn maple 2020-11-09 10:53:53
python zero basics tutorial


Serious , I haven't written courseware for a long time . It may not be so smooth . I hope you can give me more advice and criticism . Serious , I haven't written courseware for a long time . It may not be so smooth . I hope you can give me more advice and criticism .
If you like to program, you can add some Q Group 867067945, You can get free learning materials when you join the group , There are big men in the group to answer your questions !
Python How did you get it ?
Python Founded by Guido · Van rosum (Guido van Rossum).1989 Christmas period of , Guido · Van Rossum is spending his time in Amsterdam , Determined to develop a new script interpreter , As ABC An inheritance of language . Abreast of the times TIOBE Ranking List ,Python Has occupied the third place in the world ,Python Advocating beauty 、 Simple 、 Clear , Is an excellent and widely used language .

It's necessary to say Python Naming problem of . Python The name actually comes from Guido( Uncle GUI ) Favorite TV series Monty Python’s Flying Circus. It's almost the same with foreigners , Call what you think of . There is no structure at all , Remember learning Java When , There's a framework called Hibernate, It's meant to hibernate , One more Spring, It means hot spring or spring . There are many more of them , such as android The name of each generation's version is food . So! , Name this thing . It's true. There's no rules . It's like a line in a sketch “ My name is gouzuo. Who did I go to ? It's better to be a loser ”.

Python What can I do ?
That's a good question . I don't know what to do with it , Bai Xue !
python The first thing I'm good at is automatic operation and maintenance ( Required course of operation and maintenance major ), Once one of my students was an operation and maintenance engineer of Tencent , One has to manage 3000+ The server . If you do it by hand , It's going to kill you . With python Add some shell Easy to handle .
python The second area I'm good at is reptiles .python It's a scripting language .“ Simple ” It's the best thing about it . Maybe in a few words you can get a good little crawler . This is also python One of the skills of settling down .
python The third area I'm good at is data analysis . Traditional data analysis uses tableau and excel Mainly , With Python Blessing , Data analysis can be fully automated . Twice the result with half the effort is also .
python The fourth area I'm good at is machine learning and artificial intelligence, which are very popular in recent years . Why does the rise of artificial intelligence drive python Well ? This brings us back to the essence of artificial intelligence . We know that the essence of computers is mathematics , Machine learning needs to apply a lot of difficult mathematical formulas . Early artificial intelligence was not computer science . It's more of a big math guy . That's the question , Mathematics , It is a difficult problem to apply the mathematical formula to the computer . I used to use MATLAB The big math guy who does math finds that it doesn't seem to be efficient . So they tried other programming languages . as everyone knows ,python Grammar is the easiest to use . Plus python Many excellent third-party modules let these guys who usually do math taste sweet . It makes sense ,python It has become the preferred language in the field of artificial intelligence .
however , Here, for the sake of Xiaobai people, I want to talk more about losing it ,python Although suitable for artificial intelligence , But it doesn't mean that other languages are not competent for machine learning . It doesn't mean that artificial intelligence is very easy . After all, most people fail in math .
Here I want to solemnly say a word to Xiaobai people : Little white white people don't come up and engage in artificial intelligence .
python The last area I'm good at is actually a little far fetched , But it's really an area . Namely pythonweb. With Django,Flask,Sanic And so on ,Python stay web And there are some achievements in the direction . however , There is one saying. . Do big web service , still Java More suitable . Have done Django You should be able to see ,Django There are so many functions that the principles and ideas come from Java Of Servlet and Hibernate. And it's not as comfortable as others . and Flask and Sanic Not much . Set up a springMVC Of Python It's just a framework . The most important thing is that the efficiency is not high yet . Do you think this thing is irrelevant .
The reason Pythonweb There are so many problems , I still summarize it as an important area , Because there are some companies using it in China Pythonweb To develop web application . That's it .
interpreted ? A compiled ?
Originally? , I don't want to say that . Because whatever it is , It doesn't mean much to Xiaobai who just started .
First , Programming languages are generally divided into three categories according to their running processes .
The first category : interpreted
interpreted : Write the code to the interpreter , The interpreter interprets and runs line by line . Because the program is running on the interpreter , All interaction with the operating system is left to the interpreter . So for different operating systems, you just need to provide different interpreters . Therefore, interpretive languages often have good cross platform features .–> Baidu should be said that . Look first , I'll explain it later .
The second category : A compiled
A compiled : Written code needs to be compiled by the compiler . And then take the compiled results to execute , Typical is what we're going to use QQ, Thunderbolt etc. . They have a unified problem , Due to the use of writing programs, many operating system function libraries are called , As a result, the compiled content can only be executed on the current operating system . It won't work if you get other platforms ( Other platforms may not have these libraries ).
The third category : Compile first and then explain .
Compile first and then explain : This is very easy , First compile it into xxx, Then take xxx Go to the interpreter to execute . You can think of it as a compromise between the advantages and disadvantages of the two types above
Performance differences : Let's first understand , No matter what type , We have to turn our written code into 01 The machine code is then handed over to the computer for execution . So here's the problem . Interpretive languages are executed line by line , That is to say, read a line , Translation line , And then execute . Every line has to be like this . Efficiency is conceivable ... And compiler , You can think of it as a one-time translation 01 Machine code , Then every time you execute it, you can take the translated machine code , Its efficiency must be much higher than that of interpretive language . Unfortunately python Is an interpretive programming language . That's what a lot of big guys always say python An important factor in low efficiency . and C Language is a typical compiler language , So he's efficient . So it's good for doing some lower level work on the operating system .
You may have doubts about this ,python It's so slow to learn ?No! Don't worry about it , The so-called slow also has to have the contrast . For example, a program uses C To write that it may take 0.00001 second ,python slow 100 times , So is that 0.001 second ,0.001 Seconds for you , I don't seem to feel anything . Besides, , For some special scenes ( Reptiles ) We have to slow down the program . Otherwise it's easy to seal IP All right . What do you mean by this ? It's called Wen Dao , There are specialized skills . No best , Only the best fit !
All right , This is the first one . There are programming problems , Feel free to write or comment on ...
If you like to program, you can add some Q Group 867067945, You can get free learning materials when you join the group , There are big men in the group to answer your questions !

版权声明
本文为[Autumn maple]所创,转载请带上原文链接,感谢

  1. 利用Python爬虫获取招聘网站职位信息
  2. Using Python crawler to obtain job information of recruitment website
  3. Several highly rated Python libraries arrow, jsonpath, psutil and tenacity are recommended
  4. Python装饰器
  5. Python实现LDAP认证
  6. Python decorator
  7. Implementing LDAP authentication with Python
  8. Vscode configures Python development environment!
  9. In Python, how dare you say you can't log module? ️
  10. 我收藏的有关Python的电子书和资料
  11. python 中 lambda的一些tips
  12. python中字典的一些tips
  13. python 用生成器生成斐波那契数列
  14. python脚本转pyc踩了个坑。。。
  15. My collection of e-books and materials about Python
  16. Some tips of lambda in Python
  17. Some tips of dictionary in Python
  18. Using Python generator to generate Fibonacci sequence
  19. The conversion of Python script to PyC stepped on a pit...
  20. Python游戏开发,pygame模块,Python实现扫雷小游戏
  21. Python game development, pyGame module, python implementation of minesweeping games
  22. Python实用工具,email模块,Python实现邮件远程控制自己电脑
  23. Python utility, email module, python realizes mail remote control of its own computer
  24. 毫无头绪的自学Python,你可能连门槛都摸不到!【最佳学习路线】
  25. Python读取二进制文件代码方法解析
  26. Python字典的实现原理
  27. Without a clue, you may not even touch the threshold【 Best learning route]
  28. Parsing method of Python reading binary file code
  29. Implementation principle of Python dictionary
  30. You must know the function of pandas to parse JSON data - JSON_ normalize()
  31. Python实用案例,私人定制,Python自动化生成爱豆专属2021日历
  32. Python practical case, private customization, python automatic generation of Adu exclusive 2021 calendar
  33. 《Python实例》震惊了,用Python这么简单实现了聊天系统的脏话,广告检测
  34. "Python instance" was shocked and realized the dirty words and advertisement detection of the chat system in Python
  35. Convolutional neural network processing sequence for Python deep learning
  36. Python data structure and algorithm (1) -- enum type enum
  37. 超全大厂算法岗百问百答(推荐系统/机器学习/深度学习/C++/Spark/python)
  38. 【Python进阶】你真的明白NumPy中的ndarray吗?
  39. All questions and answers for algorithm posts of super large factories (recommended system / machine learning / deep learning / C + + / spark / Python)
  40. [advanced Python] do you really understand ndarray in numpy?
  41. 【Python进阶】Python进阶专栏栏主自述:不忘初心,砥砺前行
  42. [advanced Python] Python advanced column main readme: never forget the original intention and forge ahead
  43. python垃圾回收和缓存管理
  44. java调用Python程序
  45. java调用Python程序
  46. Python常用函数有哪些?Python基础入门课程
  47. Python garbage collection and cache management
  48. Java calling Python program
  49. Java calling Python program
  50. What functions are commonly used in Python? Introduction to Python Basics
  51. Python basic knowledge
  52. Anaconda5.2 安装 Python 库(MySQLdb)的方法
  53. Python实现对脑电数据情绪分析
  54. Anaconda 5.2 method of installing Python Library (mysqldb)
  55. Python implements emotion analysis of EEG data
  56. Master some advanced usage of Python in 30 seconds, which makes others envy it
  57. python爬取百度图片并对图片做一系列处理
  58. Python crawls Baidu pictures and does a series of processing on them
  59. python链接mysql数据库
  60. Python link MySQL database