2022-08

coursera Python Basics

Python Classes and Inheritance: week3

Test cases, edge casesThe test.testEqual Functionassert statementPythonにはassertという文があります。assert の後に Python の式が続きます。もしこの式...
coursera Python Basics

Python Classes and Inheritance: week2

Inheriting Variables and Methodsクラスのargumentにクラスを置くと、メソッドがinherit継承される。継承するクラスのメソッドを指定するとこうなる。うーんわからない。Overriding Method...
coursera Python Basics

Python Classes and Inheritance: wee1;

object 志向って結局何?メソッドとは、クラスのファンクションである。メソッドはファンクションと違ってargumentが一つだけらしい。Pythonでは、すべての値は、実際にはオブジェクトです。辞書であろうと、リストであろうと、整数であ...