1 Introduction As an important renewable resource, biomass shows great potential for applications in various fields, including energy storage and conversion, environmental remediation, catalysis, and biomedicine, owing to its wide availability, structural diversity, and low cost [1, 2]. Particularly, the conversion of biomass into carbonaceous materials with specific functions through physical, chemical, or biological methods has attracted extensive attention [3].