Simply speaking of making a website, PHP is obviously more suitable. PHP is designed for the web, while Python can only be used for the web. PHP is also simpler than Python, easier to learn, and more friendly to novices.
According to statistics from the authoritative technology website w3techs.com on July 28, 2017, PHP was used by 82.7% of websites Used, ASP.NET accounts for 15%, Java accounts for 2.6%, and python only 0.2%.
So it can be said that almost all websites are made of PHP, and Python can be ignored. (Recommended learning: PHP programming from entry to proficiency)
The majority of companies will not lightly change the programming language that the company has used for many years, because this involves a lot of costs.
Once completely changed, the code this company has accumulated over the years and the talents it has cultivated will disappear.
From a product perspective, just because python made Zhihu and Douban websites, python should be used to replace PHP on the web.
Is it better to make a website more famous than language?
I won’t mention more than 82% of applications. PHP also explains what PHP products are.
Products developed purely in PHP are undoubtedly the world's largest social networking site Facebook abroad, and the most popular Sina Weibo and WeChat official accounts in China!
In fact, many famous domestic websites are actually developed with PHP, such as Baidu, Taobao, JD.com, Vipshop, Fangtianxia, and Bilibili
Python can do more things manually. For intelligent and scientific computing, just talking about web development, using Python for background management tasks is more powerful than PHP. But these are not things that novices learning to make websites should consider.
An excellent programmer does not consider which language to learn, but considers which language is more appropriate in which scenario. When you learn one, you'll find that the other becomes easier. Some of my projects are done in PHP, but I still use Python or go to do some scheduled tasks.
The above is the detailed content of Should I use php or python to build a website?. For more information, please follow other related articles on the PHP Chinese website!