发布时间:2019-08-27 08:03:04编辑:auto阅读(2474)
import ctypes import os lpBuffer = ctypes.create_string_buffer(78) ctypes.windll.kernel32.GetLogicalDriveStringsA(ctypes.sizeof(lpBuffer), lpBuffer) vol = lpBuffer.raw.split('\x00') for i in vol: print i #遍历字母A到Z,忽略光驱的盘符 for i in range(65,91): vol = chr(i) + ':' if os.path.isdir(vol): print vol
上一篇: leetcode 241. Differ
下一篇: Python升级导致yum命令不能使用
47882
46450
37336
34773
29348
26011
24961
19979
19582
18076
5821°
6449°
5962°
5988°
7095°
5937°
5981°
6472°
6437°
7818°