07 2023 档案

摘要:> typdef定义数组后的初始化 | 计算机内部只知晓地址,类型为上层的高级语义 ```c #include typedef int ARR_INT_2[2]; void test(ARR_INT_2 *t) { int *t1; int *t2; t1 = &(((int*)t)[0]); t2 阅读全文
posted @ 2023-07-23 18:03 LiYanbin 阅读(11) 评论(0) 推荐(0) 编辑
摘要:import sys import traceback def print_traceback(): '打印通常的回溯信息,且附有每帧中的局部变量的列表' tb=sys.exc_info()[2] #返回当前异常的(type,value,traceback) while tb.tb_next: tb 阅读全文
posted @ 2023-07-13 11:11 LiYanbin 阅读(119) 评论(0) 推荐(0) 编辑
摘要:PYTHON随笔-logging import logging from logging.handlers import RotatingFileHandler gLogFile = '/var/log/dbm_py.log' LOG_FORMAT = "%(asctime)s [%(levelna 阅读全文
posted @ 2023-07-13 09:21 LiYanbin 阅读(13) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示