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.
Android の QPython でインタラクティブ コンソールを使用している場合、chdir で .py ファイルを含むディレクトリにインポートしようとすると、「モジュールが見つかりません」という結果になります。問題は、sys.path の最初の要素が「.」ではなく「」であることです。os.chdir() の前または後に sys.path[0] を '.' に設定すると、これが修正されます。