Python's positioning?

Source: Internet
Author: User
What are the different scenarios for Python and Java? What are the different positions?

Reply content:

What can python do?

1, the development of website business logic
Python has an excellent web development Framework Django, Django supports a variety of mainstream databases, has a good ORM system and template system, a perfect third-party library can help solve most of the problems encountered. and support various operating systems.

2, data analysis and scientific computing
Python has a large number of scientific computing libraries such as NUMPY,SCIPY, pandas data Analysis Library and matplotlib and other drawing libraries, in the field of scientific computing and data analysis has become the mainstream language

3, web crawler
Scrapy as a python implementation of the reptile library, is widely used, while Python also has beatifulsoup, pyquery and other HTML parsing library requests network library can be used for crawling and analysis purposes.

4, automatic operation and maintenance
The main operating systems are integrated with Python, while the mainstream technology stack saltstack and Ansible are also developed based on Python technology. You can use Python to create powerful automated operations tools.

What can Java do?

1 Big Data analytics
Java has a complete big data technology system, including but not limited to Hadoop, HBase, Spark, and storm for processing massive amounts of data.

2 distributed clusters
Java has a large number of fully functional distributed service middleware to avoid the re-development of such services. These middleware include zookeeper, Kafka, HDFs, etc.

3 Search Engines
Search engines are now also a dominant Java, Java Elasticsearch is currently the best open source search engine, in addition, around the Elasticsearch Elk Log Analysis tool has formed the ecological chain play more and more use.

As you can see from the above analysis, Python is better suited for startups or companies with very high demand for business change.
And Java is more suitable for business requirements stable, and there is a huge amount of data to deal with the company! I'm using what I made out of Python.

# #搭建网站后台
I used JSP to write the site backstage, very painful uncomfortable, in short, I would like to continue learning to change the feeling, and then I contacted Python, because the other major projects have not been launched, attach their own personal blog, based on Python
/ http aljun.me

# #写爬虫
Python writes a reptile's sour cool is unbelievable, first of all, he is very good for network access support, and then the crawler like scrapy,pyspider,requests (this does not seem to be a reptile library) such as the writing crawler to fly up AH

# #科学计算
At that time I was to do mathematical modeling contest, in addition to me basically everyone chose to use MATLAB, but I still use python that three-piece set (matplotlib,nunpy,scipy), plus the use of Python to read the topic of Excel data, And then the Python code was very intuitive, and as in English, my two teammates, who didn't know the basis of computing, could quickly see if I was using code to express their ideas. Python and Java are all common languages (general purpose) that's what they do. The biggest difference between the two is that Python is a dynamic class, and Java is a static class.
The advantage of dynamic classes is that it's cool to write, but slow to run. And the project is so big that it's easy to confuse yourself. For: scripts, (because of small) network applications (because the speed does not matter much slower)
Static class safe fast, but the writing of the egg hurts. Applicable to large websites or services. Full stack language for machine learning and data mining. Some people answer that Java has a distributed platform. In fact, these distributed platforms also support Python in applications. The amount ... Other aspects of the application I'm not quite sure. But as a simulation tool for technology development, Python is ideal. To a large extent can replace traditional tools such as MATLAB (of course, Simulink, auto code generation This is not possible ...). In addition, Python can support functional programming, so it can be used as a tool for ai/algorithm research. The syntax is simple, the math library is more mature, free, realize fast is the advantage.
My suggestion is that any student who takes scientific research as a future direction can master Python as the first computational language. I don't know anything else, so I won't comment. Almost omnipotent, start-up company's preferred small website has ASP and PHP, the big website has Java and. Net,python only in the middle of the search for development, but the world's big, application software and Web site so many, who would not be able to dominate the market! In fact, Python can do anything, but the main focus in the Web, server, data analysis, scientific computing, data services and other fields. direction or more, the subject must choose a good direction, do not like the direction is actually painful. The best choice for prototyping, especially for networking and science, is to know that many American universities are non-computer majors teaching Python instead of rectification, so all sorts of bizarre libraries have, now very fire face recognition, machine learning, neural networks have finished
Because simple, quick to start, so the novice productivity is also good, want to play well is another thing.
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.