📜  python print 中的 % 运算符 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:32.830000             🧑  作者: Mango

代码示例1
# This prints out "John is 23 years old."
name = "John"
age = 23
print("%s is %d years old." % (name, age))