How do I find out what Python libraries are installed on my Mac?

后端 未结 7 2898
后悔当初
后悔当初 2021-02-19 20:25

I\'m just starting out with Python, and have found out that I can import various libraries. How do I find out what libraries exist on my Mac that I can import? How do I find out

7条回答
  •  渐次进展
    2021-02-19 20:44

    From the Python REPL (the command-line interpreter / Read-Eval-Print-Loop), type help("modules") to see a list of all your available libs.

    Then to see functions within a module, do help("posix"), for example. If you haven't imported the library yet, you have to put quotes around the library's name.

提交回复
热议问题