运维网's Archiver
论坛
›
Python
› python输出%
lujiguo115
发表于 2018-8-12 09:14:09
python输出%
python中格式化字符 %% ,可以输出%,如下:
>>> print '%.2f%%' % (2.322)
2.32%
>>> print '%d%%' % 23
23%
页:
[1]
查看完整版本:
python输出%