파이썬_장고
-
-
python inheritence (phython의 class의 constructor( init 객체지향(object oriented player))파이썬_장고 2024. 11. 26. 12:47
python에는 construct없이 init 이 있음. self는 class자체임아래) first argument로 self 꼭 받아야가능human function부르는방법 super initname을 필요로함super class = humansuper은 상속하는 클래스에 접근할수 있는 권한을 줌상속중인 init 매써드를 호출 이경우는 human아래) 매서드 - 오버라이딩 -문자열로 나오게 하기 아래) class가 str super매서드 갖고있음아래) underscore, underscore 매서드 아래) dir는 디렉터리를 의미해. 클래스의 속성들과 매서드를 보여줌아래) 오버라이딩: name대신 이모지를 returnproperty jia.name호출해도 이모지 나옴getattribute
-
git init파이썬_장고 2024. 11. 21. 12:31
출처:https://nomadcoders.co/ ktree@DESKTOP-KUQC42K MINGW64 /d/airbnb_django $ code . ktree@DESKTOP-KUQC42K MINGW64 /d/airbnb_django $ git init Initialized empty Git repository in D:/airbnb_django/.git/ ktree@DESKTOP-KUQC42K MINGW64 /d/airbnb_django (master) $ git site에서 repository 만들고,바탕화면 폴더만들고 / open folder 하고 git initgit commit -m "new"git push -u origin maingit remote add origin https://githu..