How about a dict comprehension: filtered_dict = {k:v for k,v in d.iteritems() if filter_string in k}. One you see it, ...
確定! 回上一頁