two kinds of digit by

for k in range(10001):\x0d
 if len(set(str(k)))==2:print k

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

download

return top