Recently in the development of public numbers, found that a lot of development of the public numbers are using PHP to develop, because I developed the web side like to use Python, so from the Quora web site to find a which-is-better-php-or-python-why article, looked at the next, English proficiency is limited, simple translation is as follows:
The two languages have different purposes and histories, so it is unfair to compare them with each other. I'll try to list the items I like about both of them.
Php:
- Forgiveness: PHP is one of the most "free" languages I have ever used, and probably only JavaScript can rival him.
- Easy learning curve: You can quickly launch PHP to develop a basic or experienced program. The main purpose of PHP is to create a service. This also facilitates rapid development.
- Compatible Enthusiasts: PHP code does not need to work gracefully. I think this is the biggest reason why it has become the most popular web development language. You can write some code in a hurry and it will work.
- Open Source community: He has a huge community and open source project that uses PHP. If you encounter an obstacle, you get support easily.
- Web Development language: Most popular web Frameworks (Wordpress, Drupal, Joomla, Zend, CodeIgniter, oscommerce) are built on top of PHP, which makes it easy to find a PHP developer.
- Host support: Because PHP is very popular, almost every host vendor supports PHP.
- PHP 5 has a dramatic improvement over the previous version in terms of language design.
Python:
- Grammar and Standard libraries: I like the readability of Python syntax. The standard Python library comes with a number of tools and utilities.
- Generic: Python can run on a server, or it can build applications in many other places.
- Elegance: Python has an elegant language design, which makes it easier to write great code.
- Unicode support: Python has strong support for Unicode.
- Modularity and clarity: less eccentric than Php,python language.
Original: Https://www.quora.com/Which-is-better-PHP-or-Python-Why
PHP vs Python