摘要:
x = [1, 2, 3]y = [x, dict(key1=x)]z = [y, (x, y)]import objgraphobjgraph.show_refs([y],filename='sample.png')运行时报如下错误Graph viewer (xdot) and image ren... 阅读全文
摘要:
defline_conf(a, b):i =a *bdefline(x):i =i +xreturni *x +breturnlineline1 =line_conf(4, 5)printline1(5)在python2.x中报UnboundLocalError错误,原因应该是变量i是函数line_... 阅读全文