Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 |
Tags
- PANDAS
- Python
- PROJECT
- variables
- polynomial regression
- Github
- matplotlib
- train/test
- matplotlib.pyplot
- machine learning
- pie charts
- continue
- iterates
- line width
- MySQL
- break
- multiple lines
- Text Analytics
- line color
- error
- For loops
- self parameter
- AS
- SQL
- Default X points
- Else
- data distribution
- __init__
- start exercise
- Text mining
Archives
- Today
- Total
목록self parameter (1)
Data Science Explorer
A class is like an object constructor, blueprint for creating objects. Example Create a class named MyClass, with a proprty named x: class MyClass: x = 10 Create Object Example Create an object named p1, and print the value of x: p1 = MyClass () print (p1.x) The __init__() Function All classes have a function called __init__(), which is always executed when the class is being initiated. Example ..
Python
2023. 11. 19. 12:11