Skip to content

Commit 9ea32e5

Browse files
committed
update
1 parent 5f8b044 commit 9ea32e5

File tree

151 files changed

+53081
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+53081
-1
lines changed

2025-03-27.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11

2+
> ### [The Python Tutorial (v.3.13) ](https://docs.python.org/3.13/tutorial/index.html)
3+
4+
---
25
### 타입찍이 보기
36

47
파이썬 안에서 모든게 객체 클래스

2025-03-28.md

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
### [ 2025-03-27.md ]
2-
---
2+
> [The Python Tutorial (v.3.13) ](https://docs.python.org/3.13/tutorial/index.html)
33
4+
---
45
### pandas 를 이용한 excelx 문서 읽어오기 리뷰
56
- [[Python/파이썬] Pandas 기초 정리 : 엑셀 파일(.xlsx) Dataframe으로 만들기, Datarame을 다시 엑셀파일(xlsx)로 저장하기](https://ybworld.tistory.com/42)
67
- [(Pandas) 파이썬 엑셀 파일 다루기 : read_excel, to_excel](https://jimmy-ai.tistory.com/68)
@@ -306,6 +307,10 @@ try ~ except ~ finally
306307
print(f"'{file_path}' 처리가 완료되었습니다.")
307308
    file.close()
308309
```
310+
- [⭐[Python] 텍스트 파일 읽고 쓰기(open, readlines 등)](https://smart-worker.tistory.com/52)
311+
- [[ Python ] 파이썬 파일 입출력/ with ~ as 문/ 한 줄씩 읽기](https://mminky.tistory.com/109)
312+
- [[Python] 파일 읽고 쓰기
313+
](https://mminky.tistory.com/109)
309314
310315
311316
@@ -335,12 +340,64 @@ def get_book(index):
335340
```
336341
337342
---
343+
#### raise 문 ── 의도적으로 예외를 발생시킴
344+
```
345+
# 의도적으로 예외를 발생시킴
346+
raise ValueError('올바르지 않은 인수입니다')
347+
```
348+
- [파이썬 raise 명령어](https://m.blog.naver.com/youndok/222065059098)
349+
- [파이썬 Raise 사용 방법과 주요 ExceptionType의 특징](https://hobbylife.tistory.com/entry/%ED%8C%8C%EC%9D%B4%EC%8D%AC-Raise-%EC%82%AC%EC%9A%A9-%EB%B0%A9%EB%B2%95%EA%B3%BC-%EC%A3%BC%EC%9A%94-ExceptionType%EC%9D%98-%ED%8A%B9%EC%A7%95)
350+
351+
352+
353+
338354
339355
---
356+
#### with 문 ── 정의한 클린업 처리를 반드시 실행함
357+
- with문에서는 f.close 를 호출하지 않아도 됨
358+
- 'with'문을 사용하면, 파일을 열고 작업을 수행한 후 자동으로 파일을 닫아줍니다. 이는 프로그래머가 파일을 닫는 것을 잊어버리는 실수를 방지해줍니다.
359+
360+
> ```
361+
> # f에 파일 객체가 대입됨
362+
> with open('some.txt', 'w') as f:
363+
> f.write('some text')
364+
> ```
365+
> ```
366+
> # 파일 객체가 닫혀있음을 확인') as f:
367+
> f.closed
368+
> ```
369+
> ```
370+
> >>>
371+
> True
372+
> ```
373+
374+
> ```
375+
> f = open('some.txt', 'w')
376+
> f.write('some text')
377+
> ```
378+
> ```
379+
> # 파일 객체는 아직 닫혀 있지 않음
380+
> f.closed
381+
> ```
382+
> ```
383+
> >>>
384+
> False
385+
> ```
386+
> ```
387+
> # 파일 객체를 명시적으로 닫음
388+
> f.close()
389+
>
390+
> f.closed
391+
> ```
392+
> ```
393+
> >>>
394+
> True
395+
> ```
340396
341397
342398
343399
---
400+
### None ── 값이 존재하지 않음을 표현함
344401
345402
---
346403

fulfillPython-main/.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

0 commit comments

Comments
 (0)