我现在在做java开发。现在想自学python,目前在网上看廖雪峰的python基础教程,但是再下一步做什么就不清楚了,不清楚接下来的学习方向。
周围没有人学python,只能网上求助各位同仁了。
先谢谢各位了。
还有,学习pythond的网站,书籍请推荐下,从入门开始。万分感谢!
PHP中文网2017-04-17 17:47:50
Your doubts are the direction of advancement, so first you need to ask yourself two questions:
1. What do you want to do in the future?
Do you have a personal career goal? What would you like to do in the future, at least in terms of programming?
For example, just to make money, or to make games, websites, cloud computing...
2. What can Python do?
Before that, let’s talk about the characteristics of Python.
Python’s advantages are obvious:
Low development cost.
"Life is short, use Python quickly" is certainly not just a saying. The open source nature of Python allows Python to have a large number of third-party libraries, and its own libraries and methods also encapsulate a large number of common functions. , it is extremely convenient to use. A function that requires 1,000 lines to implement in C language may only take a few dozen lines or even less in Python, which saves a lot of time for development.Cross-platform.
If you are doing Java, I won’t go into details, but the feature of Linux’s built-in Python is really...
Of course, the disadvantages are also obvious:
Running slowly.
There is no way, it encapsulates countless layers, and it is an interpreted language. Slow running is inevitable. Sacrificing running speed to improve development efficiency is gradually proven to be worth it———— Hardware technology has greatly improved, and many applications are no longer limited to byte-level and millisecond-level execution efficiency.The code is public.
Because it is an interpreted language, it does not require compilation like C and Java. The running code is the written code, and it is completely open source. Of course, whether this is a disadvantage or an advantage is a matter of opinion.
Then let’s briefly talk about what Python is suitable for.
【Crawler】
Excellent libraries and frameworks, in modern society where the hardware level has been greatly improved, Python is really suitable for developing crawlers. You only need the following three lines of code to output the entire www.baidu .com page document:
import urllib2 body = urllib2.urlopen('http://www.baidu.com/') pirnt
body.read() If you think about it, you can do a lot A once and for all thing? 1024?【Big Data Analysis】
Numpy, pandas, scipy and other third-party libraries provide very powerful data analysis, scientific calculation and other functions, just try it and you will know.【Web Development】
Django, Flask, Tornado and other open source frameworks provide great convenience for Python
Web development. I love Django anyway. Douban in China is developed using Python...【Automation Script】
Well, this is very general, mostly used for automated testing and operation and maintenance.
Due to Python’s strong compatibility and rapid development characteristics, Python is becoming more and more popular in the field of automated testing from IBM to Google, and the threshold for automation is relatively low. I am currently doing server automated testing. The job is really not very demanding in terms of programming level.【Cloud Computing】
Well, OpenStack is written in Python, not to mention the virtualization tool virtualenv. Cloud computing is in full swing now, and the money prospects are relatively bright.【Hacker】
Why has Python become the favorite language of many hackers?
Fast development and many libraries. Not to mention these two, there is another very important reason: most Linux systems come with their own Python environment, and most servers are Linux systems.
That’s it.
So, young man, the road signs have been placed for you, you can make your own choice.
If you have any other questions, you can ask me in private~
高洛峰2017-04-17 17:47:50
Route 1: web direction, flask, django, tornado, web2py, etc.
Route 2: crawler
Route 3: ERP development, open source odoo uses python for secondary development
Route 4: data mining
Route 5: machine learning
Route 6: Scientific Computing
高洛峰2017-04-17 17:47:50
A python related book compiled by myself
https://github.com/Junnplus/awesome-python-books
The poster can read books according to the above categories, from basic to advanced grammar books, and choose the direction you like in the application category.
Attached is also a Chinese version
黄舟2017-04-17 17:47:50
Recommend a tutorial to the original poster http://www.rm5u.com/python/python-tutorial.html