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.
我正在尝试使用 python 代码区分 mac 上的文件夹和包。
os.path.isfile('package') 返回 false 并且 os.walk('package') 遍历包,就好像它在任何普通文件夹中一样。
感谢您的思考:)