The heteroatom-doped porous carbon is an effective strategy to improve the CO2 uptake. However, there are obvious contradictory conclusions in the previous reports regarding the influences of nitrogen groups and pore sizes. Besides this, previous researches about CO2 capture and CO2/N-2 selectivity on nitrogen-doped carbon materials often ignore the effect of oxygen-containing functional groups. Herein, we successfully synthesized rich oxygen and nitrogen doped carbon materials by hydrothermal treatment using tobacco stem and ethylenediamine, respectively. The obtained porous carbons exhibit h...