a = "255.0.0.10"b = "255.0.0.10/32" print(a.split('/'))print(a.split('.'))print(b.split('/'))
11
['255.0.0.10'] ['255', '0', '0', '10'] ['255.0.0.10', '32']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!