python in some less familiar with recording function

Hsattr ():

  the hasattr ()  function for determining whether the object contains the corresponding property.

  grammar:

    hasattr(object, name)

  parameter:     

    object - the object.

    name - a string property name

  If the object has the property returns True, otherwise False.

Guess you like

Origin www.cnblogs.com/itachi-ashes/p/11261362.html