How can I see if a child exists in Python? -


i have lxml object called item , may have child called item.brand, it's possible there none returned api. how can check in python?

try hasattr().


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -