Table of Contents
回复内容:
Home Backend Development PHP Tutorial 用半年的时间来开发一个新网站,应该选 PHP 还是 Python?

用半年的时间来开发一个新网站,应该选 PHP 还是 Python?

Jun 17, 2016 am 08:31 AM
android php python web windows

最近有一个项目可以抽出半年时间来做,个人有web基础(html、css和肤浅的ASP及PHP),但是在语言的选择上有点纠结;新开发网站是选择PHP还是PYTHON呢?
时间方面:考虑到有半年时间来学习(专注半年只学习不做其他工作)。有可能独立完成项目吗?
效率方面:查了些资料有些说PYTHON效率底下,那么能支持中大规模web项目的运行吗?
移植性:以后会开发移动平台(android)和Windows平台的软件,PYTHON都可以胜任吗?
PS:python的学习有什么好的书籍和思路可以分享一下吗?以后招人的话是不是python的人才很难找呢?

最后决定用python了,由于后台需要有些排序算法,感觉python综合性好些,不是还被形象的称谓胶水语言吗?谢谢各位朋友的热心回答。

回复内容:

还是根据场景来决定比较好。因为曾经的PHP一次加载,一次销毁的特点(目前已经不是这么简单了),如果网站仅以内容发布为主,或者是交互为主,完全可以使用PHP来做,虽然Django很强大,php下也有Symfony2可以实现,当然这是重量级的。

如果你需要在网站后端跑一些分析,处理或者针对网站特点做一些特殊的优化,比如类似于知乎这种推荐,那么如果前端用了PHP后端应该还会用其他语言,如果选了Python应该就不需要引入第二门语言。


还是根据应用场景。 虽然我非常喜欢python语言,但是人员招聘太难了。如果项目做大以后,都得自己培养。

所以强烈建议php,如果是公司项目的话。 php、python都不合适。推荐rails。只有用rails,你才可能用业余时间快速开发出一个完整的网站。php、python开发效率都太低,不适合个人使用。 选 php 吧。因为用 python 的话不会需要半年,最多一个月可以搞定 Gmail和youtube都是python的。国内的豆瓣也是Python的。
合理设计的python不会存在效率问题。设计不合理,什么语言都白搭。
从头学还是Python吧,毕竟除了网站,python还有非常广泛的应用(从MMORPG到科学计算)。
而PHP的应用领域相对比较窄。 其实产品开发一直都是技术胜于语言的。用PHP和Python做大型系统都有各自的案例。并不存在语言的优劣。或者说语言的优劣在某种程度上可以忽略,或者用各自的优势相互抵消。
对于开发一个新系统来说语言就更显得不那么重要了。随着产品的成熟,团队技术的成熟,平台迁移是常有的事,而且并不是一件难事。
但是就国内的开发来说,个人建议用PHP做新产品的开发,很显然国内各种PHP开发资源(人力、物力、财力)的支持都会比Python好很多。 对于没有经验的一律,建议用python,强制缩进能让人养成好习惯。 既然你会php,就应该用熟悉的语言。
每个语言都有缺点,没必要纠结。将来长大了,遇到问题实在无法解决,可以再换。 服务器是虚拟主机还是云主机?还是独立的有专门的服务器?
现在服务器供应商会提供专门的Python的有几家?
这些应该都要算到成本里面去的吧。 python挺不错的,代码写起来很舒服,入门很快!

chulaiba.com是之前完全没有python基础,边学边做1个多月完成的
后来又做了个"爱撮合",aicuohe.com。更是很快就能搞定
至于后期性能和效率方面,如果真能成功的到那一步,相信自然会有方法解决的
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Explain late static binding in PHP (static::). Explain late static binding in PHP (static::). Apr 03, 2025 am 12:04 AM

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

What are PHP magic methods (__construct, __destruct, __call, __get, __set, etc.) and provide use cases? What are PHP magic methods (__construct, __destruct, __call, __get, __set, etc.) and provide use cases? Apr 03, 2025 am 12:03 AM

What are the magic methods of PHP? PHP's magic methods include: 1.\_\_construct, used to initialize objects; 2.\_\_destruct, used to clean up resources; 3.\_\_call, handle non-existent method calls; 4.\_\_get, implement dynamic attribute access; 5.\_\_set, implement dynamic attribute settings. These methods are automatically called in certain situations, improving code flexibility and efficiency.

What is the function of C language sum? What is the function of C language sum? Apr 03, 2025 pm 02:21 PM

There is no built-in sum function in C language, so it needs to be written by yourself. Sum can be achieved by traversing the array and accumulating elements: Loop version: Sum is calculated using for loop and array length. Pointer version: Use pointers to point to array elements, and efficient summing is achieved through self-increment pointers. Dynamically allocate array version: Dynamically allocate arrays and manage memory yourself, ensuring that allocated memory is freed to prevent memory leaks.

Is the conversion speed fast when converting XML to PDF on mobile phone? Is the conversion speed fast when converting XML to PDF on mobile phone? Apr 02, 2025 pm 10:09 PM

The speed of mobile XML to PDF depends on the following factors: the complexity of XML structure. Mobile hardware configuration conversion method (library, algorithm) code quality optimization methods (select efficient libraries, optimize algorithms, cache data, and utilize multi-threading). Overall, there is no absolute answer and it needs to be optimized according to the specific situation.

How to convert XML files to PDF on your phone? How to convert XML files to PDF on your phone? Apr 02, 2025 pm 10:12 PM

It is impossible to complete XML to PDF conversion directly on your phone with a single application. It is necessary to use cloud services, which can be achieved through two steps: 1. Convert XML to PDF in the cloud, 2. Access or download the converted PDF file on the mobile phone.

Is there any mobile app that can convert XML into PDF? Is there any mobile app that can convert XML into PDF? Apr 02, 2025 pm 08:54 PM

An application that converts XML directly to PDF cannot be found because they are two fundamentally different formats. XML is used to store data, while PDF is used to display documents. To complete the transformation, you can use programming languages ​​and libraries such as Python and ReportLab to parse XML data and generate PDF documents.

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

How to convert xml into pictures How to convert xml into pictures Apr 03, 2025 am 07:39 AM

XML can be converted to images by using an XSLT converter or image library. XSLT Converter: Use an XSLT processor and stylesheet to convert XML to images. Image Library: Use libraries such as PIL or ImageMagick to create images from XML data, such as drawing shapes and text.

See all articles