This topic created in 4277 days ago, the information mentioned may be changed or developed.
4 replies • 2015-02-20 16:42:15 +08:00
 |
|
判断类型-->执行 --> 检查类型 --> 返回值 | ->触发异常
type和isinstance()可以用嘛?
|
 |
|
estFeb 20, 2015 via Android
2
PyObject里随便撸
|
 |
|
dantFeb 20, 2015 via iPhone
3
str(obj) -> obj.__str__()
|
 |
|
3楼说得很对 python里面 万物皆对象 楼主所说的工厂函数在每个对象里面都有自己的实现
|