Theoretically designed two-dimensional γ-C4O as an effective gas separation membrane for hydrogen purification.