在 2013年11月29日星期五UTC+8下午10时57分36秒,Mark Lawrence写道: > On 29/11/2013 12:33, iMath wrote: > > > > > > BTW ,the Queue object has an attribute 'queue' ,but I cannot find it > > described in the DOC ,what it means ? > > > > > > > Really? AttributeError: type object 'Queue' has no attribute 'queue' > > > > -- > > Python is the second best programming language in the world. > > But the best has yet to be invented. Christian Tismer > > > > Mark Lawrence
you can do a check by hasattr() -- https://mail.python.org/mailman/listinfo/python-list