摘要: 使用格式化字符串的方式实现举例: re.findall("(this,%s,'(.*?)'"%str(i),"abcd(this,1,'123123)')这里i为变量 阅读全文
posted @ 2018-05-27 03:47 致橡树的你 阅读(1464) 评论(0) 推荐(0)
摘要: #encoding:utf-8import math #向上取整print "math.ceil "print "math.ceil(2.3) => ", math.ceil(2.3)print "math.ceil(2.6) => ", math.ceil(2.6) #向下取整print "\nm 阅读全文
posted @ 2018-05-27 02:01 致橡树的你 阅读(454) 评论(0) 推荐(0)