L = ['123.76.9.2', '125.76.9.3', '123.76.10.12', '92.93.3.79', '92.93.3.78', '222.222.222.222', '222.222.1.222']
L = sorted([".".join(['%03d' % int(j) for j in i.split('.')]) for i in L])
print L
Blog Archive
-
▼
2011
(19)
-
►
June
(7)
- In list of numbers, find each pair that equals 100...
- Binary search in Perl, using CGI.pm and Ajax
- python: generate list of random alphnumeric string...
- View source of a malware website: http://bzowwjcr....
- Java: Write to File: Copy Bytes: Copy Music
- aLife cellular automata with sound output
- ascii to hex converter. useful for iwconfig key pa...
-
►
June
(7)
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment