name = "tom";
age: "25";
print("hello %s, now you are %d" % (name, age));报错

如果直接赋值常量
name = "tom";
age: "25";
print("hello %s, now you are %d" % ("tom", 25));输出

这是为什么?
慕先生4543078
慕容433121
慕的地6079101
Charlottehuang
慕先生4543078
Camel97
随时随地看视频慕课网APP
相关分类