语言 - 单纯谈web的话,python为什么比php好?
rt,总是不明白为什么只说web方面的话,python比php好。。。
是因为简洁的语法么?开发效率?框架和库?
之类的么?
回复内容:
rt,总是不明白为什么只说web方面的话,python比php好。。。
是因为简洁的语法么?开发效率?框架和库?
之类的么?
要不你都学一遍再看.
我接触过PHP
和Python
,就发表一下自己的看法(不喜勿喷,如有错误,请指正)。
二者都是Web开发中最常用的大众语言,不管是在开发者中,还是学生群体,都有很高的普及度;在TOBIE排行榜上,二者排位差也不了多少;同时,二者都有很活跃的社区做支撑,有诸多的第三方库(PHP有pear,python有pep)等。
对于PHP,上手快,精通难,学习曲线比较符合先快后慢;因为上手比较容易,因此phper也比较快的形成产品原型,以供后期迭代;好好研究一番wp源码,或许就能去外面找到一份php开发工作,工资薪水跟你的能力有关。正如楼上所说,天朝不缺php开发者。在大众开发中,phper的平均工资会比pyer较低(这点TZ可以去找国外相关的调查研究)。
对于py,上手比php难,精通也比较难,学习曲线比较符合慢热型;但上手之后,能快速开发出产品原型,开发效率和迭代效率会略胜于php;py在机器学习,自然科学等领域有广泛的应用,甚至能进行桌面应用开发,并有大量功能强大的模块支持,能大大减少开发时间。
之前在一篇文章中看到过这样一段话:php是用来找工作的,py是用来赚钱的,ruby是用来提高自己逼格的。
开发语言没有什么好与坏之分,自己用的顺手的就是好的~
现在各种新语言的出现,都说相比其他语言多么的高级,多么的好用~
但是,又有多人真正的使用呢~
所以说呢,适合自己的才是最好的~
rails 啊
鬼扯,典型的先给出一个结论,再来倒推原因
PHP 是老牌的网页脚本语言,相对其他两门而言比较成熟。PHP 虽然快速成型,但容易失控,尤其项目稍大的时候。
对于 Python 来说,由于自身的简约设计,可能应用的方面的更多,几乎是可以涉及到IT的各个方面,Web 只是它其中一个方面,而且有比较成功的杀手级应用,Youtube 就是用 Python 开发的,服务器的各种原来用 shell 或者 perl 的脚本,科学计算,游戏的脚本,甚至在桌面客户端上也能看到 Python 的佳作,如 UliPad,对于初学者来说 Python 是个不错的选择,在这三者中它的语法是最简洁和清晰的,适合初学者学习。
编程语言没有好坏之分,就好比拿汉语和英语来比较,很难分出个高低的。你应该去了解两种语言的特性,在不同的场合用恰当的语言。比如你要自己做个小博客,PHP会更适合。要是开发个大型应用,那就用python。PHP也可以做大型应用的,只是这种情况下用python更好一点。
你确定你不是新手?
你确定你不是来挑事的?
拿框架,社区,开发人员 随便找一个php
都能砸死python
= =
只不过是php
长得丑而已
你这问题可以改为单纯谈web的话,什么语言最好
。
来啊,开战了
当然Rails才是第一,
但话说回来PHP完虐Python
单论语言设计,Python有历史遗留问题,算不上好。PHP就更不用说了,糟糕的设计,当然不影响它干活。
Web开发中,大致考虑效率和性能的权衡。Ruby社区更具有创造性,先进的web开发理念和模式多源于ruby社区。
天朝从来不缺PHP工作职位。Python在运维管理、数据挖掘、机器学习方面越来越强势。
最后,鄙人不认为谈论语言好坏有什么不妥。当然,不会试图去说服别人接受自己的观点。
php 是世界上最好的语言,世界是 js 构成的,有 python 鸟事。
第三次世界大战再次拉开帷幕~!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The article introduces the operation of MySQL database. First, you need to install a MySQL client, such as MySQLWorkbench or command line client. 1. Use the mysql-uroot-p command to connect to the server and log in with the root account password; 2. Use CREATEDATABASE to create a database, and USE select a database; 3. Use CREATETABLE to create a table, define fields and data types; 4. Use INSERTINTO to insert data, query data, update data by UPDATE, and delete data by DELETE. Only by mastering these steps, learning to deal with common problems and optimizing database performance can you use MySQL efficiently.

MySQL has a free community version and a paid enterprise version. The community version can be used and modified for free, but the support is limited and is suitable for applications with low stability requirements and strong technical capabilities. The Enterprise Edition provides comprehensive commercial support for applications that require a stable, reliable, high-performance database and willing to pay for support. Factors considered when choosing a version include application criticality, budgeting, and technical skills. There is no perfect option, only the most suitable option, and you need to choose carefully according to the specific situation.

MySQL performance optimization needs to start from three aspects: installation configuration, indexing and query optimization, monitoring and tuning. 1. After installation, you need to adjust the my.cnf file according to the server configuration, such as the innodb_buffer_pool_size parameter, and close query_cache_size; 2. Create a suitable index to avoid excessive indexes, and optimize query statements, such as using the EXPLAIN command to analyze the execution plan; 3. Use MySQL's own monitoring tool (SHOWPROCESSLIST, SHOWSTATUS) to monitor the database health, and regularly back up and organize the database. Only by continuously optimizing these steps can the performance of MySQL database be improved.

MySQL database performance optimization guide In resource-intensive applications, MySQL database plays a crucial role and is responsible for managing massive transactions. However, as the scale of application expands, database performance bottlenecks often become a constraint. This article will explore a series of effective MySQL performance optimization strategies to ensure that your application remains efficient and responsive under high loads. We will combine actual cases to explain in-depth key technologies such as indexing, query optimization, database design and caching. 1. Database architecture design and optimized database architecture is the cornerstone of MySQL performance optimization. Here are some core principles: Selecting the right data type and selecting the smallest data type that meets the needs can not only save storage space, but also improve data processing speed.

It is impossible to view MongoDB password directly through Navicat because it is stored as hash values. How to retrieve lost passwords: 1. Reset passwords; 2. Check configuration files (may contain hash values); 3. Check codes (may hardcode passwords).

Common reasons and solutions for MySQL installation failure: 1. Incorrect username or password, or the MySQL service is not started, you need to check the username and password and start the service; 2. Port conflicts, you need to change the MySQL listening port or close the program that occupies port 3306; 3. The dependency library is missing, you need to use the system package manager to install the necessary dependency library; 4. Insufficient permissions, you need to use sudo or administrator rights to run the installer; 5. Incorrect configuration file, you need to check the my.cnf configuration file to ensure the configuration is correct. Only by working steadily and carefully checking can MySQL be installed smoothly.

MySQL download file is corrupt, what should I do? Alas, if you download MySQL, you can encounter file corruption. It’s really not easy these days! This article will talk about how to solve this problem so that everyone can avoid detours. After reading it, you can not only repair the damaged MySQL installation package, but also have a deeper understanding of the download and installation process to avoid getting stuck in the future. Let’s first talk about why downloading files is damaged. There are many reasons for this. Network problems are the culprit. Interruption in the download process and instability in the network may lead to file corruption. There is also the problem with the download source itself. The server file itself is broken, and of course it is also broken when you download it. In addition, excessive "passionate" scanning of some antivirus software may also cause file corruption. Diagnostic problem: Determine if the file is really corrupt

MySQL refused to start? Don’t panic, let’s check it out! Many friends found that the service could not be started after installing MySQL, and they were so anxious! Don’t worry, this article will take you to deal with it calmly and find out the mastermind behind it! After reading it, you can not only solve this problem, but also improve your understanding of MySQL services and your ideas for troubleshooting problems, and become a more powerful database administrator! The MySQL service failed to start, and there are many reasons, ranging from simple configuration errors to complex system problems. Let’s start with the most common aspects. Basic knowledge: A brief description of the service startup process MySQL service startup. Simply put, the operating system loads MySQL-related files and then starts the MySQL daemon. This involves configuration
