Determine whether the key exists in the dictionary , If the key is in the dictionary dict Back in true, Otherwise return to false
Python 3 Chinese Dictionary (Dictionary) has_key() The function becomes __contains__(key), Use the same , Take a chestnut :