re.findall(r'[1-9A-Z]{1}[1239]{1}[1-9]{1}[0-9]{5}[0-9A-Z]{10}', F_ShehuiXinYongCode)[0]
if len(re.findall(r'[1-9A-GY]{1}[1239]{1}[1-9]{1}[0-9]{5}[0-9A-Z]{10}', F_ShehuiXinYongCode)) > 0 else ''
F_ShehuiXinYongCode为str
博客提及F_ShehuiXinYongCode为str类型,str通常代表字符串,这是信息技术中数据类型的一种。
re.findall(r'[1-9A-Z]{1}[1239]{1}[1-9]{1}[0-9]{5}[0-9A-Z]{10}', F_ShehuiXinYongCode)[0]
if len(re.findall(r'[1-9A-GY]{1}[1239]{1}[1-9]{1}[0-9]{5}[0-9A-Z]{10}', F_ShehuiXinYongCode)) > 0 else ''
F_ShehuiXinYongCode为str
5812
2万+
4319
1238
3302

被折叠的 条评论
为什么被折叠?