采用pathlib库 from pathlib import Path Path(__file__).name 相关文章: 2022-12-23 2021-06-15 2019-01-24 2022-01-19 2021-12-26 2022-12-23