如何为有4个或5个字母的国家在python中生成带有regex的列表?Venezuela', 'Syria', 'Kazakhstan', 'Austria', 'Malawi', 'Romania', 'Congo (Brazzaville)']import re
n = [w for w in names if re.findall(r'[A
在python中,将长度较小的列表(3或4)转换为变量的最佳方法是什么?实际上,我想做的与在Python3中创建这样的列表相反。some_python_list=[a,b,c,d]a,b,c,d=some_python_list.decompose(4) #while I know alist is of length4a=some_python_list[0]
b=some