支持参数格式化,与C 语言的printf 类似. >>>str = "the length of (%s) is %d" %('runoob',len('runoob')) >>> print(str) the length of (runoob) is 6. python字符 ...
確定! 回上一頁