Two charge-transfer single crystals induced by donor-acceptor interactions were obtained. The presence of different solvent molecules led to 1D (linear) or 2D self-assembly modes. More interestingly, the 2D organic framework, a layer-by-layer 2D organic framework single crystal, showed a stronger charge-transfer effect than the 1D cocrystal.