TerryChan' Blog

文章

标签

喜欢

标签: os

共找到 21 篇相关文章

第 1 页,共 3 页

文章预览

How to log messages in Pyhon
2023年08月22日 417 字

In Python, you can use the built-in `logging` module to log messages. Here's a basic example: ``` import logging logging.basicConfig(level=logging.INFO, format='%(asctime)s [%…

阅读全文
浏览 评论

文章预览

How to get file extension in Python?
2023年08月22日 304 字

It looks like you may have accidentally included search results for a different question in your response. Nonetheless, here's how you can get file extension from a file path in P…

阅读全文
浏览 评论