Skip to content

Commit cb7cb36

Browse files
committed
3월 28일(금) 오후 업데이트
1 parent a89366a commit cb7cb36

File tree

3 files changed

+123
-141
lines changed

3 files changed

+123
-141
lines changed

2025-03-28.md

Lines changed: 57 additions & 141 deletions
Original file line numberDiff line numberDiff line change
@@ -573,165 +573,81 @@ print_title() # f-string은 실행 시 평가됨
573573
```
574574
# 전달한 순서로 치환
575575
'python {} {}'.format('practice', 'book')
576-
577-
578-
---
579-
580-
---
581-
582-
583-
584-
---
585-
586-
---
587-
588-
589-
590-
---
591-
592-
---
593-
594-
595-
596-
---
597-
598-
---
599-
600-
601-
602-
---
603-
604-
---
605-
606-
607-
608-
---
609-
610-
---
611-
612-
613-
614-
---
615-
616-
---
617-
618-
619-
620-
---
621-
622-
---
623-
624-
625-
626-
---
627-
628-
---
629-
630-
631-
632-
---
633-
634-
---
635-
636-
637-
638-
---
639-
640-
---
641-
642-
643-
644-
---
645-
646-
---
647-
648-
649-
650-
---
651-
652-
---
653-
654-
655-
656-
---
657-
658-
---
659-
660-
661-
662-
---
663-
664-
---
665-
666-
667-
668-
---
669-
670-
---
671-
672-
673-
674-
---
675-
676-
---
677-
678-
679-
680-
---
681-
682-
---
683-
684-
685-
686-
---
687-
688-
---
689-
690-
691-
692-
---
693-
694-
---
695-
696-
697-
698-
---
699-
700-
---
701-
702-
703-
704-
---
705-
706-
---
707-
708-
709-
710-
---
576+
```
711577
712578
---
713579
580+
#### % 연산자 ── 가장 오래된 문자열 포맷
581+
- [⭐ 4.9.4. 문자열 포맷 연산자](https://sdc-james.gitbook.io/onebook/3./3.9.-strings/3.9.4.)
714582
583+
```
584+
print "My name is %s and weight is %d kg!" % ('Zara', 21)
585+
```
586+
```
587+
>>>
588+
My name is Zara and weight is 21 kg!
589+
```
715590
716-
---
717591
718592
---
593+
#### str 타임과 비슷한 bytes 타입
594+
str.encode()와 bytes.decode()를 이용한 상호 변환
719595
596+
```
597+
인코딩 디코딩
598+
직열화 역직렬화
599+
시리얼라이즈 디시리얼라이즈
600+
문자열화 객체화
601+
dump load
602+
parse .
603+
. eval() <-- 문자열을 객체로 변환
604+
```
720605
606+
- [파이썬 str.encode() - 문자열의 부호화된 내부 코드값(인코딩)을 제공하는 메소드](https://m.blog.naver.com/youndok/222299302794)
607+
- [json — JSON encoder and decoder_v3.13](https://docs.python.org/ko/3.13/library/json.html)
608+
- [[Python] 문자열을 코드로 (eval, exec 사용법)](https://bio-info.tistory.com/84)
721609
722610
---
611+
#### 슬라이스를 사용한 리스트 추출
723612
724-
---
725-
613+
```
726614

615+
items = ['note', 'notebook', 'sketchbook']
616+
```
617+
```
618+
items[0:2] # 앞에서부터 items[2]의 하나 전까지 포함됨
619+
>>>
620+
['note', 'notebook']
621+
```
727622
728-
---
623+
```
624+
items[:2] # : 앞을 생략하면 맨 앞부터 포함됨
625+
>>>
626+
['note', 'notebook']
627+
```
729628
730-
---
629+
```
630+
items[1:] # : 뒤를 생략하면 마지막까지 포함됨
631+
>>>
632+
['notebook', 'sketchbook']
633+
```
731634
635+
```
636+
items = ['note', 'notebook', 'sketchbook']
637+
items[0:-1]
638+
>>>
639+
['note', 'notebook']
640+
```
732641
642+
```
643+
# 엘리먼트 수는 일치하지 않아도 관계없음
644+
items = ['note', 'notebook', 'sketchbook']
645+
items[0:2] = [1, 2, 3]
646+
items
733647

734-
---
648+
>>>
649+
[1, 2, 3, 'sketchbook']
650+
```
735651
736652
---
737653

2025-03-31.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
### [ 2025-03-31.md ]
2+
> [The Python Tutorial (v.3.13) ](https://docs.python.org/3.13/tutorial/index.html)
3+
4+
---
5+
#### tuple 타입 ── 변경할 수 없는 배결을 다루는 타입
6+
7+
8+
---
9+
10+
---
11+
12+
13+
---
14+
15+
16+
17+
---
18+
19+
---
20+
21+
22+
---
23+
24+
25+
26+
---
27+
28+
---
29+
30+
31+
---
32+
33+
34+
35+
---
36+
37+
---
38+
39+
40+
---
41+
42+
43+
44+
45+
---
46+
47+
---
48+
49+
50+
---

markdown문법.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
### [VS Code 와 MD (Mark Down) 활용](https://junostudio.tistory.com/7)
3+
> ```
4+
> MD 파일은 마크다운 (Mark Down)의 약자입니다. 읽기도 쓰기도 쉬운 문서 양식을 지향합니다.
5+
> 저희 개발자들이 많이 쓰는 GitHub 에서는 기본적으로 README.md 파일을 첫페이지로 표시하기 때문에
6+
> MD 파일을 잘 꾸며주면 좀더 친화적인 저장소 설명이 될 수 있습니다.
7+
> 허나 MarkDown은 표준은 아니기 때문에 GitHub가 지키는 MD파일 규칙을 알고 작업하시는게 좋습니다.
8+
> GitHub는 기본 MD파일의 변형판인 Github-Flavored Markdown을 따르고 있습니다.
9+
> 다음의 링크를 클릭하면 해당 규칙에 대한 좀 더 많은 정보를 볼 수 있습니다.
10+
> ```
11+
> * [링크](https://docs.github.com/en/get-started/writing-on-github)
12+
13+
14+
------------------------------------------------------------------
15+
### [비쥬얼스튜디오코드로 마크다운 처음 사용하기 + 기본문법](https://parkjava.tistory.com/23)
16+
------------------------------------------------------------------

0 commit comments

Comments
 (0)