本文介绍了为什么Python不能完全面向对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道为什么Python不完全面向对象.例如,它不支持私有,公共,受保护的访问级别修饰符.

这有什么优点和缺点?通过这些表达式,Python适用于哪些应用程序(桌面,科学,Web或其他)?

解决方案

Python不支持强大的封装,这只是与面向对象"一词相关的众多功能之一. /p>

答案仅仅是哲学. Guido不喜欢隐藏东西,Python社区中的许多人都同意他的想法.

I want to know why Python is not fully object-oriented. For example, it does not support private, public, protected access level modifiers.

What are the advantages and disadvantages of this? By these expressions, Python is suitable for what applications (Desktop, Scientific, Web or other)?

解决方案

Python doesn't support strong encapsulation, which is only one of many features associated with the term "object-oriented".

The answer is simply philosophy. Guido doesn't like hiding things, and many in the Python community agree with him.

这篇关于为什么Python不能完全面向对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 16:19