Think before you speak, read before you think.
—
by
any判断dict,list,tuple是不是为空
>>> eth = {“eth0″:”192.168.1.1”}
>>> any(eth)
True
>>> eth = {}
False
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Δ
Leave a Reply