๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
Python/[Nomad] Web Scrapper

[GET READY FOR DJANGO] OOP

by ๐Ÿ’œautumn 2020. 8. 5.

[ Django? ] 

 - web Framework to make Back End API, Front End using only Python

 

[Argument, Keyword argument?]

 - *args : infinite positional arguements (>>take tuple)

 - **kwargs : infinite keyword arguements ( >>take dictionary)

 

 

[ Method ] 

 - functions inside of a class

 - โ˜… method ! ๋ชจ๋“  ๋ฉ”์†Œ๋“œ์˜ ์ฒซ๋ฒˆ์งธ argument๋Š” ๋ฉ”์†Œ๋“œ๋ฅผ ํ˜ธ์ถœํ•˜๋Š” ์ž๊ธฐ์ž์‹ (instance)์ด์•ผ

ํŒŒ์ด์ฌ์€ ๋ฉ”์†Œ๋“œ๋ฅผ ํ˜ธ์ถœํ• ๋•Œ ๊ทธ ๋ฉ”์†Œ๋“œ์˜ ์ธ์Šคํ„ด์Šค๋ฅผ ์ฒซ๋ฒˆ์งธ ์•„๊ทœ๋จผํŠธ๋กœ ์‚ฌ์šฉํ•ด

 - ๋‚ด์žฅํ•จ์ˆ˜

    dir(class) : ํด๋ž˜์Šค์— ์กด์žฌํ•˜๋Š” ๋ชจ๋“  properties๋ฅผ list๋กœ ๋ฐ˜ํ™˜

 

[inheritance]

 there is no 'extends' keyword > USING ARGUMENT WHEN U MAKE A CHILD CLASS

  e.g.) class Child_class_name(Parents_class_name)

 

 - overload : can deal with different arguments

 - override : can define everything

if u wanna keep original functions and add something, should use super()

'Python > [Nomad] Web Scrapper' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[EXTENDING] put Web Scrapper in Server  (0) 2020.08.06
[Building a Job Scrapper] How to make Web Scrapper?  (0) 2020.08.04
[Introduction&Theory] Python_basic  (0) 2020.08.03

๋Œ“๊ธ€