---
# System prepended metadata

title: 除錯與與異常處理
tags: [python]

---

###### tags: `python`
# 除錯與與異常處理
最近更新日期:20201208

[Python - 日誌 (logging) 模組](https://titangene.github.io/article/python-logging.html)  =>有系統的講解
[【python】詳解logging日誌模組](https://www.itread01.com/content/1542630069.html) => 講解頗詳細

### 最簡單的Log 方法
```python=
import logging

logging.basicConfig(level=logging.INFO)
logging.info('最簡單的Log 方法')
```



參考:[Python中內建的日誌模組logging用法詳解](https://codertw.com/%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80/368404/)
參考:[老師講義](https://hackmd.io/@amostsai/By-eId0Jm?type=view#%E6%97%A5%E8%AA%8C%EF%BC%88log%EF%BC%89)





S20201005 By YTC
M20201208