可能性の重複:
Is there a way to list all the available drive letters in python?取得現在のドライブ文字
のWindows税込で現在マウントされたドライブの一覧を取得する方法は何。 Thumbドライブ、およびマップされたネットワーク
私は現在行う醜いに見えますが、完全に証明KISS :)です
drives=[] for c in string.lowercase: if os.path.isdir(c+':'): drives.append(c+':')
重複:http://stackoverflow.com/questions/827371/is-there-a -wayツーリストすべて利用可能なドライブ・レター・イン・パイソン –