python 函数运算先于单目运算

>>> def f():
    return 2

>>> -f()
-2

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

原文地址:https://www.cnblogs.com/xiangnan/p/3601324.html