Python : lire l'hexa d'un disque
Résolu/Fermé
MathKode
Messages postés
25
Date d'inscription
mardi 25 février 2020
Statut
Membre
Dernière intervention
10 juin 2022
-
4 mai 2022 à 09:45
yg_be Messages postés 22720 Date d'inscription lundi 9 juin 2008 Statut Contributeur Dernière intervention 23 avril 2024 - 4 mai 2022 à 12:00
yg_be Messages postés 22720 Date d'inscription lundi 9 juin 2008 Statut Contributeur Dernière intervention 23 avril 2024 - 4 mai 2022 à 12:00
A voir également:
- Python : lire l'hexa d'un disque
- Citizen code python - Guide
- Geometry dash python ✓ - Forum Python
- Lancer script python linux - Forum Ubuntu
- Ce programme est écrit en python ✓ - Forum Python
- Compris entre python ✓ - Forum Python
1 réponse
yg_be
Messages postés
22720
Date d'inscription
lundi 9 juin 2008
Statut
Contributeur
Dernière intervention
23 avril 2024
1 476
4 mai 2022 à 12:00
4 mai 2022 à 12:00
bonjour,
un exemple:
un exemple:
import wmi w=wmi.WMI() disks=w.Win32_DiskDrive() for disk in disks: print(disk.size) print(disk.DeviceID) dd=disks[1] named=dd.DeviceID print(named) readd=open(named,"rb") data=readd.read(512) print(data) readd.seek(512) data=readd.read(512) print(data)