*s" % (4,"jcodeer") #width = 10,precise = 3 print "%10.3s" % ("jcodeer") #输出结果: #jco #jcod # jco #同于字符串也存在精度、度和。 5.输出列表(list). l = [1,2 ...
確定! 回上一頁