two kinds of digit by rosukaruklame

f=lambda c:c.replace(c[0],'')\x0d
for a in range(10001):\x0d
 d=f(str(a))\x0d
 if d:\x0d
  if not f(d):print a

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top