Python 101 #2: Functions and Methods

Поделиться
HTML-код
  • Опубликовано: 2 фев 2025

Комментарии • 6

  • @AussieBIMGuru
    @AussieBIMGuru  4 года назад +3

    Note that the correct term for a custom extension to Python is actually 'package'. I use library interchangeably. Here and there, I might call a method a function by accident (and vice versa). A general rule of thumb is that usually methods come=>.

  • @immi85
    @immi85 4 года назад +2

    I didn't know that I can get help with "dir" and __doc__ 😀.
    Some packages are pre installed.
    But how to download other packages? (Eg. I didn't find the way to install matplotlib)
    Again great video 👍

    • @AussieBIMGuru
      @AussieBIMGuru  4 года назад +1

      dir and doc are definitely helpful for learning!
      It depends on which program you are in. If you're in Dynamo you'll typically need to obtain the .py files and save them to your Dynamo python directory.
      If in Thonny, there's an easy to use package installer/manager, Pycharm it's a bit harder I think; ruclips.net/video/4fRhNd22io0/видео.html
      Usually it's all facilitated by a package/function called 'PIP'.

    • @immi85
      @immi85 4 года назад +1

      @@AussieBIMGuru thanks for reply, I just found the way to install packages,
      It's in settings>project interpreter> click on + sign , it will show all available packages in list then find you package and click on install.

  • @luupieper
    @luupieper 4 года назад

    Great video Gavin! As immi I also didn't know about the existence of ._doc_ :)
    Ps. Always counting on the special participation of the kitten's meow

    • @AussieBIMGuru
      @AussieBIMGuru  4 года назад +1

      Haha they show up a few times during this series!