摘要: from concurrent.futures import ThreadPoolExecutorwith ThreadPoolExecutor(max_workers=processes_num) as thread: thread.submit(func, x,y,z) threading.Th 阅读全文
posted @ 2022-04-12 17:19 xiondun 阅读(72) 评论(0) 推荐(0)
摘要: 在python3.8之后函数参数中允许出现/和*号,/用来指明某些函数形参必须使用位置参数而非关键字参数的形式,*出现在函数参数中第一种含义可以表示为可变参数 ,一般写作*args;对于单独出现在参数中的*参数,则表示,*后面的参数必须为关键字参数的形式,接下来详细说下该用法: 1 /参数的用法 如 阅读全文
posted @ 2022-04-12 14:11 xiondun 阅读(2844) 评论(1) 推荐(2)