디티트래커

디티트래커

반응형
  • Folders (121)
    • python (88)
    • Dev (13)
    • Data Analyst (20)
    • 독서&자기계발 (0)
  • 홈
  • 태그
  • 방명록
RSS 피드
로그인
로그아웃 글쓰기 관리

디티트래커

컨텐츠 검색

태그

파이썬 codingtest 비전공개발자성장스토리 프로그래밍 Programming 개발자 비전공개발자 GA4 PYTHON 신문스크랩 코딩 매일경제 Def coding 알고리즘 php EomCoding 코딩테스트 엄코딩 Algorithm

최근글

댓글

공지사항

아카이브

init(2)

  • Python 22- Quiz

    문제 Quiz) 주어진 코드를 활용하여 프로그램을 작성하시오. 코드 class houes: #매물 초기화 def __init__(self, location, house_type, deal_type, price, completion_year): pass #매물 정보 표시 def show_detail(self): pass 예제 (출력 예제) 총 3대의 매물이 있습니다. 강남 아파트 매매 10억 2010년 마포 오피스텔 전세 5억 2007년 송파 빌라 월세 500/50 2000년 풀이 1. class에 관한 문제이다. 각각의 조건들을 init 해주자. self.location = location 과 같이 해주면된다.. 2. 출력하기 위한 함수를 show_detail이란 함수로 작성한다. print(self.l..

    2021.05.14
  • Python 13 - pickle, Class(Feat_Starcraft)

    #pickle #study.txt파일이 생기고 그안에 파이썬을 열심히 공부하고 있어요가 출력되어 저장된다. import pickle with open("study.txt", "w", encoding="utf8") as study_file: study_file.write("파이썬을 열심히 공부하고 있어요.") #study.txt 파일에 내용을 terminal에 출력한다. #간단하게 두문장으로 출력이 가능하고 close또한 해줄 필요가 없어서 코드가 간단해진다. import pickle with open("study.txt", "r", encoding="utf8") as study_file: print(study_file.read()) #클래스 class (Feat_Starcraft) # 마린 : 공격 유닛..

    2021.05.05
이전
1
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바