摘要:
s="i find a ip:1.2.22.123! yes" 方法1:re.search(r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}',s) 方法2:re.search(r"(\d{1,3}\.){3}\d{1,3}",s).group() 阅读全文
posted @ 2018-06-29 10:11
生活就是一种修行者
阅读(170)
评论(0)
推荐(0)
摘要:
在传递过程中是加密的,加密规则如下: 每位数字都加上5,然后用和除以10的余数代替该数字, 再将第一位和第四位交换,第二位和第三位交换。 try: num = int(raw_input("input the number length:")) except: print "is not a int 阅读全文
posted @ 2018-06-29 10:07
生活就是一种修行者
阅读(677)
评论(0)
推荐(0)
摘要:
程序分析: 组成1位数是4个。 组成2位数是7*4个。 组成3位数是7*8*4个。 组成4位数是7*8*8*4个。...... try: num_length = int(raw_input("input the number length:")) except: print "is not a i 阅读全文
posted @ 2018-06-29 09:59
生活就是一种修行者
阅读(329)
评论(0)
推荐(0)