for n in range(512):print"%04o is"%n,"".join("-x-r-w"[n>>9-i&1|i%3*2]for i in range(10))

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

download

return to the top page