摘要: %s 字符串 string="hello" #%s打印时结果是hello print "string=%s" % string # output: string=hello #%2s意思是字符串长度为2,当原字符串的长度超过2时,按原长度打印,所以%2s的打印结果还是hello print "str 阅读全文
posted @ 2018-09-07 10:51 一步至遥 阅读(18023) 评论(0) 推荐(0) 编辑
TOP