python中百分号替换参数

"%"用于格式化字符串时指定一些替换参数。

字符串格式化字符:

字符

说明

d或l

十进制整数

f

浮点数

s

字符串或对象的.str()返回串

c

单个字符

u

无符号十进制整数

X或x

十六进制整数

o

八进制整数

e或E

指数格式的浮点数

g或G

按照较短的格式自选%f或%e

r

对象的repr()版本

%

使用%%打印百分号

已有10条评论 »

  1. Best natural viagra prescription alternative, viagra for sale online .

  2. Chinese versions will likely cost about one-fourth what Pfizer charges for viagra prescription in China.

  3. Where To Purchase Generic Ciprofloxacin 0.3 5ml in Albuquerque

  4. Where To Purchase Generic Ciprofloxacin 0.3 5ml in Albuquerque

  5. viagra online pharmacy does not work for me what can i use I took viagra without telling my wife?

  6. I was looking through some of your blog posts on this internet site and I conceive this web site is rattling informative ! Keep on posting .

  7. I was looking through some of your blog posts on this internet site and I conceive this web site is rattling informative ! Keep on posting .

  8. Usage erectile dysfunction viagra Jelly is indicated for the treatment of erectile dysfunction.

  9. We sale viagra online pharmacy for cheap prices.

  10. In summation, viagra online pharmacy for quicker intense sexual effect and cialis for taking your time.

添加新评论 »