2011/10/15 惜悯 <wauue at qq.com>: > retrun True if type(i) is int else False That tests if the object is already an int; the OP asked if a string contains an integer. ChrisA