![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python相关
linkedGraph
https://github.com/linkedGraph
展开
-
python在IDLE中输入多行
在python命令行模式下,在IDLE中输入多行,例如if else使用tab的方式,控制缩进在最后,连续两个回车,表示结束>>> if state:... print "ok"... else:... print "wrong"...wrong>>>原创 2017-07-16 17:34:20 · 22505 阅读 · 2 评论 -
python的反射(自省)
python的反射相比java更为简单 例子: def fun1(): print ‘this is function 1’ def fun2(): print ‘this is function 2’ mylist = [] mylist.append(fun1) mylist.append(fun2)原创 2018-01-07 00:56:34 · 321 阅读 · 0 评论