摘要:
getattr是python里的一个内建函数,在python的官方文档中:getattr()的解释: getattr(object, name[, default]) Return the value of the named attribute of object. name must be a 阅读全文
posted @ 2017-09-15 09:57
凌冬将至
阅读(193)
评论(0)
推荐(0)
摘要:
python的str.ljust(width[, fillchar])函数,width是宽度,fillchar是可选参数,要填充的字符串。 str = 'lbw' print(str.ljust(10,'0')) 输出结果:lbw0000000 阅读全文
posted @ 2017-09-15 09:39
凌冬将至
阅读(672)
评论(0)
推荐(0)

浙公网安备 33010602011771号