摘要:
>>> def a(x): def b(y): return x+y return b >>> a(1)(4)5>>> bTraceback (most recent call last): File "<pyshell#33>", line 1, in <module> bNameError: n 阅读全文
摘要:
# 复数 d 的类是complex,调用complex中的real方法,.real() 出错,.real 不带括号正常实现 >>> d = 4j>>> type(d)<class 'complex'>>>> d.real()Traceback (most recent call last): Fil 阅读全文