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));輸出這是為什么?
python字符串格式化輸出
慕先生4543078
2017-07-24 11:28:19