这只是我的代码片段:
print("Total score for %s is %s ", name, score)
但我希望它打印出来:
"(姓名)总分为(得分)"
where name是列表中的变量,score是一个整数.这是Python 3.3,如果这有帮助的话.
name
score
python printing arguments python-3.x
arguments ×1
printing ×1
python ×1
python-3.x ×1