代码示例:(标识:demo_python_string_format_error)
age = 36
txt = "My name is Bill, I am " + age
print(txt)
运行结果: