20220921 TIL
2022. 9. 21. 21:28ㆍTIL(Today I Learnd)
- 목차
국민취업지원제도
폐업할 수 없는 사업자 덕분에 훈련 장려금을 못받게 됐다 ㅎㅎ
매니저님이 국민취업제도를 통해서 지원을 받을 수 있다고 하셔서 오전 시간 동안 알아보았다.
https://www.kua.go.kr/uaptm010/selectMain.do
홈페이지 들어가서 이것저것 봤는데 만18~34세 사이의 청년은 2유형에 해당시키고 그냥 혜택을 주는 것 같으니 도움이 필요하신 분들은 신청하면 좋을 것 같다.
vscode로 Django프로젝트 생성하기
https://numucuwer.tistory.com/7?category=895750
이거 따라서 장고 세팅 해보는데 너무 어렵다 생각대로 안된다.
6번 정도 시도해보는데서버를 여는 부분에서 계속 막힌다.
알고 봤더니 pip upgrade 후에 django를 다시한번 install해줘야된다.
https://w-world.tistory.com/92
그리고 여기에 언어랑 타임 변경하는 설정
그리고... 어찌 어찌 하다보니 성공..?
하하 기분좋다~
tutle class
class Car:
def drive(self):
self.speed = 60
def __init__(self, speed, color, model):
self.speed = speed
self.color = color
self.model = model
def __str__(self):
return f'{self.color}색의 {self.model} 모델의 차고 현재 속도는 {self.speed}입니다.'
# ^ __str__: 스트링형태로 나오게 만들어주는 함수
myCar = Car(0, "blue", "E-Class")
yourCar = Car(0, 'white', 'S-Class')
print(myCar.speed)
print(yourCar.speed)
myCar.drive()
print(myCar.speed)
print(yourCar.speed)
yourCar.drive()
print(myCar.speed)
print(yourCar.speed)
otherCar = Car(30, 'red', 'bus')
print(myCar)
print(yourCar)
print(otherCar)
print(hex(id(myCar)))
print(hex(id(yourCar)))
print(hex(id(otherCar)))
class Car:
def __init__(self, owner):
self.handle = 0
self.car_type = 'nomal'
self.owner = owner
# self.owner = owner
def turn_left(self):
self.handle -= 90
def turn_right(self):
self.handle += 90
def show_status(self):
print('owner: ', self.owner)
print('핸들 각도: ', self.handle)
print('car_type: ', self.car_type)
class Van(Car):
def __init__(self, owner):
super().__init__(owner)
self.backdoor = 'closed'
self.car_type = 'van'
def open_door(self):
self.backdoor = 'open'
def close_door(self):
self.backdoor = 'closed'
def show_status(self):
print('owner: ', self.owner)
print('핸들 각도: ', self.handle)
print('car_type: ', self.car_type)
print('backdoor :', self.backdoor)
# myCar = Car('Ocean')
# myCar.show_status()
myVan = Van('Ocean_G')
print(myVan.backdoor)
myVan.open_door()
print(myVan.backdoor)
myVan.close_door()
print(myVan.backdoor)
myVan.show_status()
클래스와 상속... super로 받아오는데 데이터가 오고가는 것을 이해보다는 외우는게... 좋을 것 같다..
'TIL(Today I Learnd)' 카테고리의 다른 글
20220923 TIL (0) | 2022.09.23 |
---|---|
20220922 TIL (1) | 2022.09.22 |
20220920 TIL (1) | 2022.09.20 |
20220919 TIL (0) | 2022.09.20 |
20220917 TIL (0) | 2022.09.17 |