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 で現在の作業ディレクトリを設定するには?
Python を使用するように変更C:\>する方法F:\>
C:\>
F:\>
私は試した
import os os.chdir("F:")
しかし、エラーが発生しました。
余分なバックスラッシュが必要です:
import os os.chdir("F:\\")