代码:
import restring='A1B2C66h7'list1=re.findall('\d+',string)list1= [eval(i) for i in list1 ]list1
结果: