mercredi 20 avril 2022

Replace numbers in YAML/XML File with random numbers (Python)

I have a file with much numbers. I want that every number will be replaced with a random number. So that the Python script changes the XML file. How to code this in Python?

!h 1: {X: '-950,00000', Y: '1500,00000', Z: '150,00000'}
!h 2: {X: '-950,00000', Y: '1500,00000', Z: '150,00000'}
!h 3: {X: '-950,00000', Y: '1500,00000', Z: '150,00000'}
!h 4: {X: '-950,00000', Y: '1500,00000', Z: '150,00000'}
!h 5: {X: '-950,00000', Y: '1500,00000', Z: '150,00000'}
!h 6: {X: '-950,00000', Y: '1500,00000', Z: '150,00000'}



Aucun commentaire:

Enregistrer un commentaire