摘要: ``` import signal class TimeoutException(Exception): pass def timeout_handler(signum, frame): raise TimeoutException() def limit_time(seconds=10): def 阅读全文
posted @ 2023-08-11 15:12 公众号python学习开发 阅读(218) 评论(0) 推荐(0) 编辑