본문 바로가기
반응형

개발일기113

24.03.10 python 기본 연습 class Puppy: def __init__(self, name, breed): self.name = name self.age = 0.1 self.breed = breed def __str__(self): return f"Puppy named {self.name}, breed:{self.breed}" ruffus = Puppy( name ="Ruffs", breed ="Beagle", ) bibi = Puppy( name="BiBi", breed="Dalmatian", ) print( bibi.name, bibi.breed, ruffus.name, ruffus.breed, ) print(bibi, ruffus, ) class Puppy: def __init__(self, name, breed): sel.. 2024. 3. 10.
24.02.23 html css js 연습 1일차 //추가하기, push() 뒤에서, unshift 앞에 console.log('before :'+myArray); myArray.unshift('orange'); console.log('after :'+myArray); ---------------------------------- before :1,3.14,true,banana,3.14,true after :orange,1,3.14,true,banana,3.14,true //array in array const myArray = [1, [3.14, true, 'banana', 3.14], true]; // console.log(myArray); console.log('before :'+myArray); const value = myArray.shift(.. 2024. 2. 23.
24.02.18 개발일기 node.js moudle 시스템 1. node.js모듈 시스템을 사용 2. 모듈은 부품과 같은 역할 여러 모듈을 조립해서 하나의 앱을 만들 수 있음 3. 모듈을 내보낼 때는 exports, 불러올때는 require, 꼭 기억해야 합니다. 4. 모듈의 종류에는 기본 모듈, 확장 모듈, 일반 모듈, 네이티브 모듈, 지역 모듈, 전역 모듈 5. global 객체를 통해 전역 객체를 사용하고 exports, require, module 등은 global 객체에 포함되어 있습니다. 6. 기본 모듈에서 자주 쓰이는 모듈에는 global process os util fs url 등이 있습니다. 7. http 모듈을 사용해서 request와 response를 구현 할 수 있음 8.http.createServer()로 서버를 만드는데 필요한 인자로는 .. 2024. 2. 18.
23.11.14 개발일기 string 하드코딩 취소 확인 살 취소 선택하기 [종목] 일정 장소 신청하기 10 지역 경기 종목 모두 취소 결과보기 전체 글 필터 취소 확인 명 취소 확인 확인 종목 일정 10월 10일 (화) 오전 10:00 인원 0 살 나이 VS 위치 성별 실력 회비 5000 내용 내용을 입력해 주세요. 사진 사진등록 등록하기 팀명 팀 이름을 입력 해 주세요. 일정 하드 코딩 작업 이게 더 하드코딩.. 2023. 11. 14.
23.11.10 개발일기 Calendarfragment viewmodel private val _list: MutableLiveData = MutableLiveData() // 뷰모델 내에서만 변경가능 val list: LiveData get() = _list // 읽기전용 리스트 fun setCalendarDate(date: CalendarDay) { val filterData = list.value?.filter { memoItem -> memoItem.day == date.day && memoItem.month == date.month && memoItem.year == date.year } //판별 _dateList.value = filterData //전체 메모 데이터인 //list.value 중에서 파라미터로 받아온 date의 날짜가 동일한 데이터만 받아온다. //.. 2023. 11. 11.
23.11.9 개발일기 Calendar labelmonth 달 한글로 출력 1월 2월 3월 4월 5월 6월 7월 8월 9월 10월 11월 12월 2023. 11. 9.
반응형