python中的嵌套类 在.NET和JAVA语言中看到过嵌套类的实现,作为外部类一个局部工具还是很有用的,今天在python也看到了很不错支持一下.动态语言中很好的嵌套类的实现,应该说嵌套类解决设计问题同时简化了程序,值得学习. import threading, sys def nested1(timeout): def _1(function): def _2(*args,**kw): class child(threading.Thread): def __init__(self): th…