gpt4 book ai didi

python - Multiprocessing.pool 错误 : raise self. _value sre_constants.error: 不平衡的括号

转载 作者:太空宇宙 更新时间:2023-11-04 12:10:45 25 4
gpt4 key购买 nike

这个错误的原因可能是什么?

File "/pga/mcad/install/python/python-2.7.6.9/linux/RH6/lib/python2.7/multiprocessing/pool.py", line 250, in map
return self.map_async(func, iterable, chunksize).get()
File "/pga/mcad/install/python/python-2.7.6.9/linux/RH6/lib/python2.7/multiprocessing/pool.py", line 554, in get
raise self._value
sre_constants.error: unbalanced parenthesis

最佳答案

我认为您的正则表达式中可能有一个括号,前面没有转义字符 \

You need to escape the parenthesis using '\' since they are a reserved character in regular expressions, used for retrieving the values inside the parenthesis.

关于python - Multiprocessing.pool 错误 : raise self. _value sre_constants.error: 不平衡的括号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49066743/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com