Think Python –– 15.1 User-defined types - Allen Downey

This quote ble lagt til av keynasty
A user-defined type is also called a class. A class definition looks like this: class Point(object): """Representing a point in 2-D space.""" This header indicates that the new class is a Point, which is a kind of object, which is a built-in type. The body is a docstring that explains what the class is for. You can define variables and functions inside a class definition.

Tren på dette sitatet


[Arkivert]
Vurder dette sitatet:
1.9 out of 5 based on 7 ratings.

Rediger tekst

Rediger forfatter og tittel

(Changes are manually reviewed)

eller bare legg igjen en kommentar:


Test ferdighetene dine, ta Skrivetest.

Score (WPM) fordelingen for dette sitatet. Mer.

Beste resultater for dette typing test

Navn WPM Nøyaktighet

Nylig for

Navn WPM Nøyaktighet