#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http

제목교수님...class실습과제 이것을 요구하신거 아니신가요?2020-05-25 00:12
작성자

--str--method를 사용하는 실습 부분에서 print(student1)이랑 print(student2)를 해서

id:20190001, name:Harry Potter
id:20190002, name:Hermione Granger 이렇게 결과가 나오도록 string method를 사용해보라고하시는건가요? 아래처럼 하게 되면 string method를 만든 의미가 없는 것 같아서 여쭈어봅니다. 항상 감사합니다! #실습과제에 나온 결과출력부분 print(student1.getId())
print(student1.getName())

print(student2.getId())
print(student2.getName()) 
 

댓글