摘要: 1 string="hello" 2 3 #%s打印时结果是hello 4 print "string=%s" % string # output: string=hello 5 6 #%2s意思是字符串长度为2,当原字符串的长度超过2时,按原长度打印,所以%2s的打印结果还是hello 7 pri 阅读全文
posted @ 2020-08-06 16:33 傻白甜++ 阅读(1155) 评论(0) 推荐(1) 编辑
TOP