摘要: >>> 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 阅读全文
posted @ 2018-03-25 21:45 我们分头打钱! 阅读(578) 评论(0) 推荐(0) 编辑
摘要: # 复数 d 的类是complex,调用complex中的real方法,.real() 出错,.real 不带括号正常实现 >>> d = 4j>>> type(d)<class 'complex'>>>> d.real()Traceback (most recent call last): Fil 阅读全文
posted @ 2018-03-25 18:48 我们分头打钱! 阅读(166) 评论(0) 推荐(0) 编辑