'''10-50中个位数带有5的所有数字'''def dig(): a=[] for i in range(10,51): if str(i)[-1]=="5": a.append(i) return aprint(dig())print("符合条件的个数为:"+str(len(dig())))