Python 🐍 Classes and Objects

preview_player
Показать описание
Classes are collections of objects and functions. Many Python packages such as time, tclab, numpy, scipy, gekko, and others are distributed as classes. A class is imported with the import statement such as import time. Time is a package that has timing functions that we will use to pause the program for a specified amount of time. TCLab package has functions created with tclab.TCLab(). The next lesson shows how to use the TCLab functions.

Рекомендации по теме
Комментарии
Автор

Dear professor, When you write lab = tclab.TCLab(), tclab(lower cases) means module name and TCLab is a class name within tclab module? I check the documents from tclab module, are we calling this function:
class TCLab(object):
def __init__(self, port='', debug=False):


TXfoxie
welcome to shbcf.ru