摘要:
print '0123'.ljust(20, '-')print '01234'.ljust(20, '-')print '012356'.ljust(20, '-')print '0123567'.ljust(20, '-') 阅读全文
posted @ 2014-11-14 20:50
helloweworld
阅读(324)
评论(0)
推荐(0)
摘要:
strVal = "%.2f" % valfloatVal = round(val, 2)但是如果val为1.0, 则结果仍为1.0, 不是1.00 阅读全文
posted @ 2014-11-14 20:20
helloweworld
阅读(489)
评论(0)
推荐(0)