Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有一些内置函数可以告诉我路径是否为绝对路径?我想要一些独立于平台的东西。
该os.path.isabs函数执行此操作。
os.path.isabs