bijection between closed and open interval

For mapping the end points of the closed unit interval [0, 1] and its inner points bijectively onto the corresponding open unit interval (0, 1), one has to discern suitable denumerable subsets in both sets: