python中格式化字符 %% ,可以输出%,如下:>>> print '%.2f%%' % (1.234) 1.23% >>> print '%d%%' % 6868% %% 第一个%是转义的作用 相关文章: