python 공부 & 정리용 Gist 바로가기
개인 공부 & 정리용 Gist들을 한눈에 볼 수 있는 북마크 인덱스
My Gist Bookmark
- 라디오
- 무선 송수신기(transceiver)
- 즉, 전파를 쏘고 받는 장치를 그냥 라디오라고 부름.
- LoRa 모듈
- LoRa 무선 기술을 쓸 수 있는(지원하는) 칩(또는 작은 회로)
- 예: Semtech SX1262, SX1276 같은 칩
- 이 칩 하나 만으로는 못 쓰고 마이크로컨트롤러(작은 컴퓨터) + 전원 + 안테나 같은 게 있어야 실제 동작 가능.
- ESP32
- 블루투스/와이파이 되는 작은 컴퓨터 칩
- 메시
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user_1 = ['Jason', 'Smith', 'Kevin'] | |
#del 리스트명[인덱스] | |
del user_1[1] | |
del user_1[1:3]#1,2번 인덱스 삭제 | |
#리스트명.pop(인덱스) | |
user_1.pop(1) | |
user_1.pop() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 공통점 | |
# 둘 다 찾은 첫 번째 자리를 출력 | |
'asdf문자열'.find('d') | |
'asdf'.index('d') | |
#시작점, 종료점 지정 (찾을 문자열, 시작점, 종료점) 혹은 (찾을 문자열, 시작점) | |
'asdfasd'.index('d', 2) | |
'asdfasdf'.find('d',1,3) | |
## 차이점 | |
'hello'.find('o',1,3) #찾는 값 없으면 -1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import deque | |
queue = deque() | |
queue.append(5) | |
queue.append(2) | |
queue.append(3) | |
queue.popleft() | |
queue.append(1) |
NewerOlder