for用法:
ss=['x_dfa','dfdsa','x_mysql','me','125'] sos=[x for x in ss if x.startswith('x_')] print sos #['x_dfa', 'x_mysql']