diff options
Diffstat (limited to 'progs/a956.py')
-rw-r--r-- | progs/a956.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/a956.py b/progs/a956.py new file mode 100644 index 0000000..dc88b37 --- /dev/null +++ b/progs/a956.py @@ -0,0 +1,4 @@ +import re
+def removezero_ip(ip):
+ string = re.sub('\.[0]*', '.', ip)
+ return string
\ No newline at end of file |