Skip to content

第一章 : 问答环节

Python 的优点

  • 软件质量 : 易于维护, 可读性强
  • 开发效率优于Java/C/C++
  • 平台之间的可移植性强
  • 标准库支持模块众多
  • 可与其他组件进行通信,C/C++/Java/.net/com 组件

可以做什么

  • 系统编程
  • GUI

TkGuiApi, PMW, wxPythonGui,PythonCard, Dabo, PyGTK, PyWin32, Jython

  • Internet

Django, TurboGears,Web2py, pylons, zope, webware

  • 组件集成
  • 数据库编程
  • 快速原型, 对于 C 来讲可以用简单的代码来编写复杂的应用
  • 科学计算, NumPy, SciPy, ScientificPython
  • 游戏, 图像, AI, XML, 机器人

Python 的技术优点

  • 面向对象
  • 免费
  • 可移植
  • 功能强大

动态类型, 内存管理, 大型程序支持, 内置对象类型, 内置工具, 库工具, 三方工具

  • 可混编, 使用 api
  • 简单易用

一个彩蛋

$ python -c 'import this'
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

说明

创建时间: 2023-01-15 00:28:00 , 最后编辑于 2023-12-04 17:26:00