随笔分类 -  Python

摘要:module A module is basically a bunch of related code saved in a** file** with the extension** .py**. package A package is basically a directory of a c 阅读全文
posted @ 2023-12-01 11:52 shendawei 阅读(26) 评论(0) 推荐(0)
摘要:Process Pools 1. apply (func[, args[, kwds]]) 只能执行1次(只能输入一次参数) 支持多个参数(参数统一为元祖类型) 阻塞(只能等待这行代码执行完,才会执行下面的代码) 返回结果为函数执行结果 2. apply_async (func[, args[, k 阅读全文
posted @ 2023-06-16 17:39 shendawei 阅读(45) 评论(0) 推荐(0)
摘要:# refcount - (reference count), a mechanism used by the Python interpreter to manage the memory of objects. - When the reference count of an object re 阅读全文
posted @ 2023-06-13 16:36 shendawei 阅读(67) 评论(0) 推荐(0)