항해99 TIL 6일차_051422

열공이·2022년 5월 14일
0

항해99 6일차

어제 올리고 잤어야했는데 깜박 잊고 자서 지금 올린다.

에러노트

NameError: The Python NameError occurs when Python cannot recognise a name in your program.

'palindrome() is not defined'로 나와서 self.palindrome()해줬다. 그런데도 arg가 2개라 TypeError가 떠서 아예 def palindrome을 def longpalindrome에 넣어주었다.

  • self는 class object의 instance다.

TypeError: TypeError is an exception in Python programming language that occurs when the data type of objects in an operation is inappropriate.

list가 str이 아니라고 뜨는데 무얼 바꿔줘야 될까?

AttributeError: AttributeError is raised when you try to call an attribute of an object whose type does not support that method.

ValueError: ValueError in Python is raised when a user gives an invalid value to a function but is of a valid argument.

sub.append(substring[0])을 추가해주었다.

Pushing to https://github.com/hanghae-algorithms-w1/algorithms-w1.git
remote: Permission to hanghae-algorithms-w1/algorithms-w1.git denied to nowlcode.
fatal: unable to access 'https://github.com/hanghae-algorithms-w1/algorithms-w1.git/': The requested URL returned error: 403

코드리뷰 & 이해

강의내용

1. Git

2. JWT

  • login
  • register/sign up

3. Linked List
https://wayhome25.github.io/cs/2017/04/17/cs-19/
https://velog.io/@choonghee-lee/%EB%B2%88%EC%97%AD-Array-vs.-List-vs.-Python-List

  • array와 list의 차이: 배열은 인덱스를 가지지만 리스트는 그렇지 않는다.

  • Array: 배열의 모든 아이템들은 똑같은 사이즈를 가진다. 그래서 시각화할 때 연속된 박스의 나열로 그려진다. 파이썬에서는 list란 용어가 다르게 쓰인다. 사실 이것은 인덱스가 있다는 점에서 dynamic array이다.

  • List: 아이템들의 메모리 주소가 연속적일 수도 있고, 아닐 수도 있다. (예. 한 아이템이 다른 아이템을 포인팅하는 Linked List가 있다. 하지만 이 아이템들은 메모리상에서 흩어져있어 주소를 간단히 계산 못한다)

  • data structure처리 아키텍쳐: storage (많이 저장, 느리다) -> memory (적게 저장, 컴퓨터 끄면 데이터가 사라진다, 빠르게 access) -> cpu (데이터를 계산한다)
    -Memory: 주소에 각자 데이터를 저장하고 있다. 메모리가 각 주소에 접근하는 시간은 동일하다 (특징: Random Access Memory RAM). 메모리 사용방식: Array List (순차적인 주소 정렬) vs. Linked List (주소가 흩어졌지만 서로 연결되어 있음.)

https://wayhome25.github.io/cs/2017/04/17/cs-19/

  • array list에서는 엘리먼트라는 이름을 사용했지만 linked list와 같이 연결된 엘리먼트들은 노드(node, 마디, 교점의 의미) 혹은 버텍스(vertex, 정점, 꼭지점의 의미)라고 부른다. 노드는 자료와 다음 노드를 가리키는 참조값으로 구성되어 있다.

키보드 조작
https://macnews.tistory.com/417
https://post.naver.com/viewer/postView.nhn?volumeNo=26918637&memberNo=607398

profile
프로그래머가 되자! 열공!

0개의 댓글