How can I remove the "leading" zeros from following version number string?
5.002.008.80911 --> 5.2.8.80911
Thx.
Using str.split
with str.join
Ex:
s = "5.002.008.80911"
print(".".join(str(int(i)) for i in s.split(".")))
Output:
5.2.8.80911
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With