Fix the code python code format (#30449)

Fix the code python code format
This commit is contained in:
van-tienhoang
2019-01-18 19:55:09 -05:00
committed by Tom
parent 9c3aa51ee4
commit 1a279432fe

View File

@ -19,9 +19,10 @@ Each of those variables are now an instance of the class Person, and have all th
To define a class, the keyword **class** is used, followed by the name defining the class and a colon. The lines after the definition line (code describing attributes and behaviors/methods) are indented as in a Python function.
For example, to create a class named Person, we can write:
`class Person:
<code describing attributes and behaviors/methods> `
```
class Person:
<code describing attributes and behaviors/methods>
```
Class definitions must be executed before they have any effect.