下面是一个使用% 字符串格式化的基本例子。 print("Hi, my name is %s" % "Jessica") 这种方法通常被称为“老”方法,因为Python 3 引入了str.format() ...
確定! 回上一頁