• Python: 3.8.11
  • OS: Ubuntu Kylin 20.04
  • Conda: 4.10.1
  • Jupyter lab: 3.1.4

code

my_dict = {'child': 'rat'.'ugly': 'cattle'.'Yin': 'the tiger'.'frame': 'rabbit'.'he': 'dragon'.'third': 'snakes'.'lunch': 'the horse'.'not': 'sheep'.'申': 'monkey'.The 'unitary': 'chicken'.'xu-gou': 'dog'.'hai': 'pig'}
Copy the code
'child' in my_dict.keys(), 'rat' not in my_dict.values()

(True.False)
Copy the code
'Beginner's mind' in my_dict.keys(), 'Beginner's mind' not in my_dict.values()

(False.True)
Copy the code

Learning to recommend

  • Python documentation – English
  • Python documentation – Chinese
  • Python code PEP
  • Google version of the Python specification
  • Python source code
  • Python PEP
  • Optimal kirin
  • The nuggets platform
  • Gitee platform


Python is open source, cross-platform, interpretive, interactive, and worth learning. Python’s design philosophy: elegant, unambiguous, simple. Advocate one way, preferably only one way to do one thing. Code should be written in accordance with specifications to facilitate communication and understanding. Every language has its own unique ideas. Beginners need to change their thinking, practice and accumulate.