摘要: 多线程: 两种方法: 其一: 使用threading.Thread()方法 #coding=utf-8 importthreading importtime defhello(): foriinrange(2): print(... 阅读全文
posted @ 2017-11-06 15:45 两只老虎111 阅读(276) 评论(0) 推荐(0)
摘要: 反射: hasattr,getattr,setattr,delattr hasattr(): help(hasattr) Help on built-in function hasattr in module builtins: hasattr(obj, name, /) Return whether the object has an attribute with the give... 阅读全文
posted @ 2017-11-06 13:45 两只老虎111 阅读(260) 评论(0) 推荐(0)