python 函数运算先于单目运算

>>> def f():
    return 2

>>> -f()
-2

初一看,-f()比较陌生的样子,细想,这是合理的

posted @ 2014-03-14 21:33  LisPythoniC  阅读(386)  评论(0编辑  收藏  举报