由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 关于python的优势
相关主题
大侠们说说C(C++)或Fortran比较Matlab到底优点在哪儿?如何自学python
python要把@当作矩阵乘法算符python开发大型软件的可能性
Python -> Go -> Python (PyPy)别人说做Python的并行还不如去学C++,我不同意。
Python的问题请教python
Python的script的兼容问题为什么Python巨慢无比?
[合集] scipy还是matlab请不要盲目崇拜FP语言
现在Window下写GUI的话用什么库?java很快吗?比python 能快多少?
python不支持多态易写性,易维护和执行效率综合来看
相关话题的讨论汇总
话题: python话题: c++话题: dynamic话题: typing
进入Programming版参与讨论
1 (共1页)
J*****n
发帖数: 4859
1
我最近重新学习了一下boost,发现python的那套东西,似乎C++里面也能方便的做到。
除了文本处理上他占点便宜,其他C++也都有。
如果是特别的数学统计的包裹,那么R里面更多。
本身对脚本不是特别熟,请教一下,Python到底有什么特别的优势?
C*O
发帖数: 389
2
语法简单
比如c++里,你定义1个函数,需要参数类型,返回类型, 定义参数数目可变的函数更
麻烦
在Python里,这些都很容易
另一方面,不用考虑垃圾回收
quant要用这些?

【在 J*****n 的大作中提到】
: 我最近重新学习了一下boost,发现python的那套东西,似乎C++里面也能方便的做到。
: 除了文本处理上他占点便宜,其他C++也都有。
: 如果是特别的数学统计的包裹,那么R里面更多。
: 本身对脚本不是特别熟,请教一下,Python到底有什么特别的优势?

r****t
发帖数: 10904
3
interactive,
no forward declaration,
default to pass by reference,
strong typing but can also do duck typing (as if templates)
exceptions are objects,
portable
simple grammar for coroutine/generator
the author was never an artist, but a mathematician and engineer.
not an opponent to c (like c++ tries to be)
can call R or use c module easily (cost portability)
the aging numpy seems reviving

【在 J*****n 的大作中提到】
: 我最近重新学习了一下boost,发现python的那套东西,似乎C++里面也能方便的做到。
: 除了文本处理上他占点便宜,其他C++也都有。
: 如果是特别的数学统计的包裹,那么R里面更多。
: 本身对脚本不是特别熟,请教一下,Python到底有什么特别的优势?

d****p
发帖数: 685
4
Agree on most except the one about portability.
Python code, when sitting close to OS, tends to not "portable" and needs a
lot of tweaking.
A big advantage of Python code over C++ is fast development time and easy
debugging - when the system is non trivial, a small change in core C++ code
requires large amounts of time for rebuilding and really hurts productivity.

【在 r****t 的大作中提到】
: interactive,
: no forward declaration,
: default to pass by reference,
: strong typing but can also do duck typing (as if templates)
: exceptions are objects,
: portable
: simple grammar for coroutine/generator
: the author was never an artist, but a mathematician and engineer.
: not an opponent to c (like c++ tries to be)
: can call R or use c module easily (cost portability)

l********a
发帖数: 1154
5
简洁,快速,移植性比c++好很多,调试也方便
h**********c
发帖数: 4120
6
I co-ask?
BTW, is Python an interpreter or compiler?
r****t
发帖数: 10904
7
both

【在 h**********c 的大作中提到】
: I co-ask?
: BTW, is Python an interpreter or compiler?

S***s
发帖数: 104
8
It's dynamic language.
Dynamic is the fashion for programming language nowadays.
Ruby, Python, Javascript, Groovy...
The other fashion is functional programming.

【在 J*****n 的大作中提到】
: 我最近重新学习了一下boost,发现python的那套东西,似乎C++里面也能方便的做到。
: 除了文本处理上他占点便宜,其他C++也都有。
: 如果是特别的数学统计的包裹,那么R里面更多。
: 本身对脚本不是特别熟,请教一下,Python到底有什么特别的优势?

1 (共1页)
进入Programming版参与讨论
相关主题
易写性,易维护和执行效率综合来看Python的script的兼容问题
有人上Spark用python API的么[合集] scipy还是matlab
从心底讨厌scala现在Window下写GUI的话用什么库?
虚心请教 如何成为Python 大牛python不支持多态
大侠们说说C(C++)或Fortran比较Matlab到底优点在哪儿?如何自学python
python要把@当作矩阵乘法算符python开发大型软件的可能性
Python -> Go -> Python (PyPy)别人说做Python的并行还不如去学C++,我不同意。
Python的问题请教python
相关话题的讨论汇总
话题: python话题: c++话题: dynamic话题: typing