If you just want to test if a path exists (be it a file, directory or even link), use os.path.exists() instead. import os.
確定! 回上一頁