某行人 at 
Python 备忘 代码风格 Python 社区在风格上,普遍喜欢使用下划线 todo: 函数名使用驼峰,与 js 一致 debug 1 2 3 4 # 临时输出到文件 # https://www.guru99.com/reading-and-writing-files-in-python.html with open("/tmp/log.txt", "a+") as f: print("test1", file=f) icecream PySnooper rich loguru 异常 创建自定义异常 创建自定义异常创建新的异常很简单——定义新的类,让它继承自 Exception1 ……